22.10.2011, 16:46
Quote:
Code:
public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == 2) { if(GetPlayerSkin(playerid) == skin %% GetVehicleModel(GetPlayerVehicleID(playerid)) == car)// replace skin with the skin id you want, replace car with the carmodel id you want. { SendClientMessage(playerid, color, "Welcome to your car!"); // Replace color with the color you want } else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, color, "You are not allowed to drive this car!"); //replace color with the color you want } } return 1; } |
Code:
C:\Users\Root\Desktop\Serveris\gamemodes\Untitled.pwn(214) : error 029: invalid expression, assumed zero C:\Users\Root\Desktop\Serveris\gamemodes\Untitled.pwn(214) : warning 215: expression has no effect C:\Users\Root\Desktop\Serveris\gamemodes\Untitled.pwn(214) : error 001: expected token: ";", but found ")" C:\Users\Root\Desktop\Serveris\gamemodes\Untitled.pwn(214) : error 029: invalid expression, assumed zero C:\Users\Root\Desktop\Serveris\gamemodes\Untitled.pwn(214) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.