30.03.2011, 00:26
pawn Код:
if(pickupid == iNEON) // NEON
{
GameTextForPlayer(playerid, "~w~Type ~r~/neon ~w~Mod Your Car", 5000, 5);
return 1;
}
sorry for bad english :P
if(pickupid == iNEON) // NEON
{
GameTextForPlayer(playerid, "~w~Type ~r~/neon ~w~Mod Your Car", 5000, 5);
return 1;
}
if(IsPlayerInAnyVehicle(playerid))
{
return GameTextForPlayer(playerid, "~w~Type ~r~/neon ~w~Mod Your Car", 5000, 5);
}
new iNEON;
public OnGameModeInit()
{
iNEON = CreatePickup(1239, 14, X, Y, Z, -1);// Set your coordinates instead of X, Y and Z
}
if(pickupid == iNEON) // NEON
{
GameTextForPlayer(playerid, "~w~Type ~r~/neon ~w~Mod Your Car", 5000, 5);
return 1;
}
if(pickupid == iNeon) GameTextForPlayer(playerid, "~w~Type ~r~/neon ~w~Mod Your Car", 5000, 3);
i need to show this when in vehicles |
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
GameTextForPlayer(playerid, "~w~Type ~r~/neon ~w~Mod Your Car", 5000, 5);
}
return 1;
}
pawn Код:
|
C:\Users\Vijay_Rasigan\Desktop\COD MW\COD MW\gamemodes\COD5.pwn(8240) : error 017: undefined symbol "newstate"