24.04.2009, 20:28
Hi
I'm new here and so as on pawno scripting...
I working on a /save and /load position script to my server and now I've reached the limit of what I can do so I want some help
The problem is GetVehicleZAngle(playerid,Z[playerid]); I think cos it says like this in the compiler about it:
Can anyone help me =) ?
I'm new here and so as on pawno scripting...
I working on a /save and /load position script to my server and now I've reached the limit of what I can do so I want some help
Код:
if (strcmp("/s", cmdtext, true, 10) == 0) { new Z[MAX_PLAYERS]; GetVehicleZAngle(playerid,Z[playerid]); GetPlayerPos(playerid, ppx[playerid], ppy[playerid], ppz[playerid]); SendClientMessage (playerid, COLOR_YELLOW, "Position Saved!"); return 1; } if (strcmp("/l", cmdtext, true, 10) == 0) { new Z[MAX_PLAYERS]; if(IsPlayerInAnyVehicle(playerid)) { SetVehicleZAngle(playerid,Z[playerid]); SetVehiclePos(GetPlayerVehicleID(playerid), ppx[playerid], ppy[playerid], ppz[playerid]); } else { SetPlayerPos(playerid, ppx[playerid], ppy[playerid], ppz[playerid]); } SendClientMessage (playerid, COLOR_YELLOW, "You have been teleported."); return 1; }
Код:
C:\Program\ROCKST~1\GTASAN~1\samp\GAMEMO~1\SeRVeR.pwn(1018) : warning 213: tag mismatch Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.