C:\Users\Austin\Desktop\Pawno\gamemodes\testserver.pwn(98) : error 029: invalid expression, assumed zero C:\Users\Austin\Desktop\Pawno\gamemodes\testserver.pwn(98) : error 035: argument type mismatch (argument 2) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
if (strcmp("/goto island", cmdtext, true, 10) == 0) { SetPlayerPos(playerid,(1046.9867,-2667.2463,15.0484,346.7808,0,0,0,0,0,)); SendClientMessage(playerid, COLOR_RED, "Sent to SARP Island"); return 1; } return 0; }
SetPlayerPos(playerid, 1046.9867, -2667.2463, 15.0484);
How do you know what to put there after you /save? I always mess this up and get this error
|
AddPlayerClass(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)
SetPlayerPos(playerid, Float:x, Float:y, Float:z)
extra barcket, extra arguments and extra comma
Just Try this it will work SetPlayerPos(playerid,(1046.9867,-2667.2463,15.0484) In /save first 3 are x , y , z others are used for class like weapons 1 , 2 ,3 and others |
Change to
pawn Код:
|