06.10.2013, 14:01
Alright thanks for help but I'm getting this error:
And here's my code: (not sure if I made that variable correctly since i'm pretty new to those)
pawn Код:
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(24) : error 017: undefined symbol "playerid"
pawn Код:
main()
{
print("\n----------------------------------");
print(" RPtest ");
print("----------------------------------\n");
}
#endif
new death[playerid] =1;
pawn Код:
public OnPlayerSpawn(playerid)
{
if (death [playerid] == 1)
{
SetPlayerPos(playerid , -320.0716 , 1049.2888 , 20.3403);
}
else
{
SetPlayerPos(playerid , 261.4925 , -270.4117 , 1.5781);
}
SendClientMessage(playerid , 0x489048FF , "You can type /commands to see the commands that are currently available.");
CreateVehicle( 581 , 266.2822, -275.4132 , 1.5781 , 82.2873 , 0 , 1 , 60);
return 1;
}