#define TEAM_LVPD 0 #define TEAM_EMS 1 #define TEAM_FBI 2 #define TEAM_Military 3 #define TEAM_DRIVER 4 #define TEAM_NEW 5 #define TEAM_LVPD_COLOR 0x33CCFFAA #define TEAM_EMS_COLOR 0xFF9900AA #define TEAM_FBI_COLOR 0xFFFFFFAA #define TEAM_Military_COLOR 0x7CFC00AA #define TEAM_DRIVER_COLOR 0x660000AA
new gTeam[MAX_PLAYERS];
forward SetPlayerTeamFromClass(playerid,classid);
public SetPlayerTeamFromClass(playerid, classid);
if (classid == 0)
{
gTeam[playerid] = 0;
return 1;
}
else if (classid == 1)
{
gTeam[playerid] = 1;
return 1;
}
else if (classid == 2)
{
gTeam[playerid] = 2;
return 1;
}
else if (classid == 3)
{
gTeam[playerid] = 3;
return 1;
}
else if (classid == 4)
{
gTeam[playerid] = 4;
return 1;
}
else if (classid == 5)
{
gTeam[playerid] = 5;
return 1;
}
if(!strcmp("/poffduty",cmdtext))
{
if(gTeam[playerid] == 0 && IsPlayerInRangeOfPoint(playerid, 4.0, 2295.9094,2451.3831,10.8203))
{
SetPlayerSkin(playerid, 185);
SendClientMessage(playerid,0xFFFFFFFF,"Bla Bla Bla");
}
else
SendClientMessage(playerid,0xFFFFFFFF, " Bla Bla Bla ");
return 1;
}
return 0;
}
C:\Users\hamza & yassine\Desktop\LV-RP\Gamemodes\LV-RP.pwn(242) : error 017: undefined symbol "gTeam" C:\Users\hamza & yassine\Desktop\LV-RP\Gamemodes\LV-RP.pwn(242) : warning 215: expression has no effect C:\Users\hamza & yassine\Desktop\LV-RP\Gamemodes\LV-RP.pwn(242) : error 001: expected token: ";", but found "]" C:\Users\hamza & yassine\Desktop\LV-RP\Gamemodes\LV-RP.pwn(242) : error 029: invalid expression, assumed zero C:\Users\hamza & yassine\Desktop\LV-RP\Gamemodes\LV-RP.pwn(242) : fatal error 107: too many error messages on one line
static gTeam[MAX_PLAYERS]; //gTeam define
|
Originally Posted by ScottCFR
May i see line 242?
Код:
static gTeam[MAX_PLAYERS]; //gTeam define |
if(!strcmp("/poffduty",cmdtext))
{
if(gTeam[playerid] == 0 && IsPlayerInRangeOfPoint(playerid, 4.0, 2295.9094,2451.3831,10.8203)) // This is line 242
{
SetPlayerSkin(playerid, 185);
SendClientMessage(playerid,0xFFFFFFFF,"Bla Bla Bla");
}
else
SendClientMessage(playerid,0xFFFFFFFF, " Bla Bla Bla ");
return 1;
}
return 0;
}
#define TEAM_LVPD 0 #define TEAM_EMS 1 #define TEAM_FBI 2 #define TEAM_Military 3 #define TEAM_DRIVER 4 #define TEAM_NEW 5 #define TEAM_LVPD_COLOR 0x33CCFFAA #define TEAM_EMS_COLOR 0xFF9900AA #define TEAM_FBI_COLOR 0xFFFFFFAA #define TEAM_Military_COLOR 0x7CFC00AA #define TEAM_DRIVER_COLOR 0x660000AA static gTeam[MAX_PLAYERS];
C:\Users\hamza & yassine\Desktop\LV-RP\Gamemodes\LV-RP.pwn(242) : error 017: undefined symbol "gTeam" C:\Users\hamza & yassine\Desktop\LV-RP\Gamemodes\LV-RP.pwn(242) : warning 215: expression has no effect C:\Users\hamza & yassine\Desktop\LV-RP\Gamemodes\LV-RP.pwn(242) : error 001: expected token: ";", but found "]" C:\Users\hamza & yassine\Desktop\LV-RP\Gamemodes\LV-RP.pwn(242) : error 029: invalid expression, assumed zero C:\Users\hamza & yassine\Desktop\LV-RP\Gamemodes\LV-RP.pwn(242) : fatal error 107: too many error messages on one line
if(!strcmp("/poffduty",cmdtext))
{
if(gTeam[playerid] == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, 2295.9094,2451.3831,10.8203)) // This is line 242
{
SetPlayerSkin(playerid, 185);
SendClientMessage(playerid,0xFFFFFFFF,"TRUE");
}
else
{
SendClientMessage(playerid,0xFFFFFFFF, "FALSE");
}
}
return 1;
}
static gTeam[MAX_PLAYERS];
new gTeam[MAX_PLAYERS];
|
Originally Posted by Bomba' Xtreme'Stuntage
WTF is that ? This is tottaly wrong
pawn Код:
pawn Код:
|
new gTeam[MAX_PLAYERS];
new gTeam[MAX_PLAYERS];
|
Originally Posted by ScottCFR
Quote:
![]() |

not gteam 0 if(!strcmp("/poffduty",cmdtext))
{
if(gTeam[playerid] == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 2295.9094,2451.3831,10.8203)) // This is line 242
{
SetPlayerSkin(playerid, 185);
SendClientMessage(playerid,0xFFFFFFFF,"You have been changed to civilian skin.");
}
else
{
SendClientMessage(playerid,0xFFFFFFFF, "You have to be in LVPD spawn place in order to use this command!");
}
}
else
{
SendClientMessage(playerid,0xFFFFFFFF, "You have to be cop in order to use this command!");
}
return 1;
}
return 0;
}
|
Delete the #if defined FILTERSCRIPT and #else lines from yours script. Because you aren't defining it as a filterscript, the compiler doesn't process the code beneath #if defined FILTERSCRIPT. Like I said, just delete it
|