4 Errors on one line -_- - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 4 Errors on one line -_- (
/showthread.php?tid=430930)
4 Errors on one line -_- -
RandomDude - 15.04.2013
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;
}
|
AW: 4 Errors on one line -_- -
ulbi1990 - 15.04.2013
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;
Re: 4 Errors on one line -_- -
RandomDude - 15.04.2013
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
AW: 4 Errors on one line -_- -
ulbi1990 - 15.04.2013
Watch please my edit.
You mix .Net, C++ or C# with Pawn.
And the last entry in a enum doesn't can have a ",".