public gc(playerid)
{
for(new i; i > MAX_PLAYERS; i++)
{
if(hasspawned[i] == 1)
{
SetPlayerScore(i, GetPlayerScore(i) + 1);
SendClientMessage(playerid,0xFFFFFFFF,"You recieved +1 score for flying!");
}
}
return 1;
}
public gc(playerid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(hasspawned[i] == 1)
{
SetPlayerScore(i, GetPlayerScore(i) + 1);
SendClientMessage(playerid,0xFFFFFFFF,"You recieved +1 score for flying!");
}
}
return 1;
}
you would have to know all plane models which is a big ass list lol
|
ok then do this
if(GetPlayerVehicleID(playerid) == plane1 || GetPlayerVehicle(playerid) == 2 and go on |
C:\Users\Alex - Webhost\Desktop\Divinity Gaming Comunity\SA-MP\[SFP]Server For Pilots\gamemodes\sfp.pwn(1896) : warning 217: loose indentation C:\Users\Alex - Webhost\Desktop\Divinity Gaming Comunity\SA-MP\[SFP]Server For Pilots\gamemodes\sfp.pwn(13322) : error 017: undefined symbol "hasspawned" C:\Users\Alex - Webhost\Desktop\Divinity Gaming Comunity\SA-MP\[SFP]Server For Pilots\gamemodes\sfp.pwn(13322) : warning 215: expression has no effect C:\Users\Alex - Webhost\Desktop\Divinity Gaming Comunity\SA-MP\[SFP]Server For Pilots\gamemodes\sfp.pwn(13322) : error 001: expected token: ";", but found "]" C:\Users\Alex - Webhost\Desktop\Divinity Gaming Comunity\SA-MP\[SFP]Server For Pilots\gamemodes\sfp.pwn(13322) : error 029: invalid expression, assumed zero C:\Users\Alex - Webhost\Desktop\Divinity Gaming Comunity\SA-MP\[SFP]Server For Pilots\gamemodes\sfp.pwn(13322) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
public gc(playerid) { for(new i = 0; i < MAX_PLAYERS; i++) { if(hasspawned[i] == 1) { SetPlayerScore(i, GetPlayerScore(i) + 1); SendClientMessage(playerid,0xFFFFFFFF,"You recieved +1 score for flying!"); } } return 1; }
public gc(playerid)
{
new vehmod;
for(new i; i < MAX_PLAYERS; i++)
{
if(GetPlayerState(playerid)!=PLAYER_STATE_DRIVER)continue; //if player isn't driving, don't count it
vehmod=GetVehicleModel(GetPlayerVehicleID(playerid));
if((vehmod==592)||(vehmod==577)) //Continue this pattern for 511,512,593,520,553,476,519,460,513,548,425,417,487,488,497,563,447,469
{
SetPlayerScore(i, GetPlayerScore(i) + 1);
SendClientMessage(playerid,0xFFFFFFFF,"You recieved +1 score for flying!");
}
}
return 1;
}