17.11.2009, 23:00
this is wat i made for personal car and for personal gang cars
but it wont compile
1566) : error 035: argument type mismatch (argument 4)
but it wont compile
1566) : error 035: argument type mismatch (argument 4)
Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { new string[100]; new PlayerName1[24]; GetPlayerName(playerid, PlayerName1, sizeof(PlayerName1)); GetPlayerName(playerid, string, MAX_PLAYER_NAME); if(newstate == PLAYER_STATE_DRIVER) { new Vehicle = GetPlayerVehicleID(playerid); if(Vehicle == dlegend) { if(strcmp(PlayerName1,"dlegend",true)) { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, 0xFB0000FF, "I'm sorry, but this car has been reserved for dlegend"); } } } if(newstate == PLAYER_STATE_DRIVER) { new Vehicle = GetPlayerVehicleID(playerid); if(Vehicle == dlegend) { 1566 if(strcmp(PlayerName1,"[pTc]%d",true,string)) { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, 0xFB0000FF, "I'm sorry, but this car has been reserved for ptc members"); } } } return 1; }}