SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 15/04/2013, 08:10 PM   #1
RandomDude
Huge Clucker
 
Join Date: Jun 2011
Location: Behind You
Posts: 390
Reputation: 0
Default 4 Errors on one line -_-

error 017: undefined symbol "Player"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

LINE 253
Quote:
pS[UseClanSkin] = Negative;
Thats were all the errors are in line 253.

Here is it all...
Quote:
public OnPlayerConnect(playerid)
{
pS[UseClanSkin] = Negative;
pS[Clan] = Negative;
pS[ClanRequest] = Negative;
return 1;
}
RandomDude is offline   Reply With Quote
Old 15/04/2013, 08:14 PM   #2
ulbi1990
Big Clucker
 
Join Date: Feb 2012
Location: Wilkau-Ha▀lau
Posts: 98
Reputation: 8
Default AW: 4 Errors on one line -_-

pawn Code:
pS[UseClanSkin]=0;

PS: Show us please the pS variable and the enum for it.

Should look simmilar like this:

pawn Code:
enum WhatEver
{
    UseClanSkin
}

new pS[MAX_PLAYERS][WhatEver];

When yes than has it to be:

pawn Code:
pS[playerid][UseClanSkin]=0;
__________________
ulbi1990 is offline   Reply With Quote
Old 15/04/2013, 08:17 PM   #3
RandomDude
Huge Clucker
 
Join Date: Jun 2011
Location: Behind You
Posts: 390
Reputation: 0
Default Re: 4 Errors on one line -_-

Quote:
#define pX Player[playerid][X]
#define pY Player[playerid][Y]
#define pZ Player[playerid][Z]
#define pA Player[playerid][A]
#define pS Player[playerid]
theres the define's
Quote:
enum PlayerStatus
{
ClanRequest,
bool:ListDialog,
Clan,
Rank,
UseClanSkin,
};
theres the enums
RandomDude is offline   Reply With Quote
Old 15/04/2013, 08:18 PM   #4
ulbi1990
Big Clucker
 
Join Date: Feb 2012
Location: Wilkau-Ha▀lau
Posts: 98
Reputation: 8
Default AW: 4 Errors on one line -_-

Watch please my edit.

You mix .Net, C++ or C# with Pawn.

And the last entry in a enum doesn't can have a ",".
__________________
ulbi1990 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
4 Errors on 1 line HyDrAtIc Scripting Help 7 22/09/2012 04:48 PM
4 Errors on one line. Humprabbit Scripting Help 1 10/09/2012 06:33 PM
Errors in a line... Gooday Scripting Help 1 25/12/2011 09:37 AM
[HELP] Many errors on one line. kukars22 Help Archive 2 10/06/2009 06:10 PM
Shows Errors but no errors in this line Kane_Phoenix Help Archive 2 31/03/2009 02:38 PM


All times are GMT. The time now is 03:25 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.