SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Scripting Help (https://forum.sa-mp.com/forumdisplay.php?f=12)
-   -   4 Errors on one line -_- (https://forum.sa-mp.com/showthread.php?t=430930)

RandomDude 15/04/2013 08:10 PM

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;
}

ulbi1990 15/04/2013 08:14 PM

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;

RandomDude 15/04/2013 08:17 PM

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

ulbi1990 15/04/2013 08:18 PM

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 ",".


All times are GMT. The time now is 01:23 AM.

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