I need a /s and /l
#10

Quote:
Originally Posted by Makaveli93
View Post
pawn Code:
// Make this a global variable
new Float:Pos[MAX_PLAYERS][3]

// Place this under OnPlayerCommandText
if(strcmp("/s", true) ==0)
{
     GetPlayerPos(playerid, Pos[playerid][0], Pos[playerid][1], Pos[playerid][2]);
     return SendClientMessage(playerid, COLOR_WHITE, "[SERVER]: Your position has been saved. Use /l to load it.");
}

if(strcmp("/l", true) ==0)
{
     SetPlayerPos(playerid, Pos[playerid][0], Pos[playerid][1], Pos[playerid][2]);
     return SendClientMessage(playerid, COLOR_WHITE, "[SERVER]: Your position has been loaded.");
}
plz i get 3 erros
PHP Code:
C:\Users\MOHAMMED\Desktop\xxxxxxxxxxxxxx\gamemodes\derby.pwn(891) : error 035argument type mismatch (argument 2)
C:\Users\MOHAMMED\Desktop\xxxxxxxxxxxxxx\gamemodes\derby.pwn(897) : error 035argument type mismatch (argument 2)
C:\Users\MOHAMMED\Desktop\xxxxxxxxxxxxxx\gamemodes\derby.pwn(902) : warning 225unreachable code
C
:\Users\MOHAMMED\Desktop\xxxxxxxxxxxxxx\gamemodes\derby.pwn(902) : warning 217loose indentation
C
:\Users\MOHAMMED\Desktop\xxxxxxxxxxxxxx\gamemodes\derby.pwn(2684) : error 030compound statement not closed at the end of file (started at line 872)
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
3 Errors

Reply


Messages In This Thread
I need a /s and /l - by [A]ndrei - 27.06.2012, 05:50
Re: I need a /s and /l - by Makaveli93 - 27.06.2012, 05:53
Re: I need a /s and /l - by [A]ndrei - 27.06.2012, 05:55
Re: I need a /s and /l - by Makaveli93 - 27.06.2012, 05:59
Re: I need a /s and /l - by [A]ndrei - 27.06.2012, 06:01
Re: I need a /s and /l - by Makaveli93 - 27.06.2012, 06:08
Re: I need a /s and /l - by [A]ndrei - 27.06.2012, 06:44
Re: I need a /s and /l - by [A]ndrei - 19.07.2012, 02:33
Respuesta: Re: I need a /s and /l - by HarlemSAMP - 19.07.2012, 04:50
Re: I need a /s and /l - by NuLIO - 19.07.2012, 10:52

Forum Jump:


Users browsing this thread: 1 Guest(s)