15.05.2010, 18:10
As I said, keep sticking to your prior code
The problem is somewhere in your if-clause
according to your description.
As there is a variable called "giveplayerid" I wonder where you declare that one.
Код:
if(gTeam[playerid] != TEAM_KIDNAPPER) { SendClientMessage(playerid, COLOR_ERROR, "Only Kidnappers can use this command"); return 1; }
Код:
if(GetPlayerState(giveplayerid) != PLAYER_STATE_PASSENGER) { SendClientMessage(playerid,COLOR_ERROR,"The player must be a passanger"); return 1; }
As there is a variable called "giveplayerid" I wonder where you declare that one.