[AJUDA]O que, que tem de erro no cmd?
#7

Quote:
Originally Posted by Josma_cmd
Посмотреть сообщение
Inicio do GM
pawn Код:
new Float: PlayerX[MAX_PLAYERS], Float: PlayerY[MAX_PLAYERS], Float: PlayerZ[MAX_PLAYERS];
OnPlayerCommandText
pawn Код:
if(strcmp("/sp", cmdtext, true, 10) == 0)
    {
       new Float:X, Float:Y, Float:Z, string[128];
       GetPlayerPos(playerid, X, Y, Z);
       format(string, sizeof(string), "Vocк salvou sua posiзгo como %f,%f,%f", X, Y, Z);
       SendClientMessage(playerid, 0xFFFFFFFF, string);
       PlayerX[playerid] = X;
       PlayerY[playerid] = Y;
       PlayerZ[playerid] = Z;
       return 1;
    }
    if(strcmp("/vp", cmdtext, true, 10) == 0)
    {
       new string[128];
       SetPlayerPos(playerid, PlayerX[playerid], PlayerY[playerid], PlayerZ[playerid]);
       format(string, sizeof(string), "Vocк voltou a posiзгo %f,%f,%f", PlayerX[playerid], PlayerY[playerid], PlayerZ[playerid]);
       SendClientMessage(playerid, 0xFFFFFFFF, string);
       return 1;
    }
Coloquei o cmd que vocк me passou mais da erros na linha 99, nгo й reconhecнvel pelo pwn,"PlayerX", serб preciso usar uma variбvel?

Erros:
Код:
C:\Users\Gabriel\Desktop\sal.pwn(99) : error 017: undefined symbol "PlayerX"
C:\Users\Gabriel\Desktop\sal.pwn(99) : warning 215: expression has no effect
C:\Users\Gabriel\Desktop\sal.pwn(99) : error 001: expected token: ";", but found "]"
C:\Users\Gabriel\Desktop\sal.pwn(99) : error 029: invalid expression, assumed zero
C:\Users\Gabriel\Desktop\sal.pwn(99) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply


Messages In This Thread
[AJUDA]O que, que tem de erro no cmd? - by DPS|NeW| - 17.05.2011, 14:01
Re: [AJUDA]O que, que tem de erro no cmd? - by zbt_Daimyo - 17.05.2011, 14:15
Re: [AJUDA]O que, que tem de erro no cmd? - by Josma_cmd - 17.05.2011, 14:26
Re: [AJUDA]O que, que tem de erro no cmd? - by steki. - 17.05.2011, 14:26
Re: [AJUDA]O que, que tem de erro no cmd? - by Josma_cmd - 17.05.2011, 14:32
Re: [AJUDA]O que, que tem de erro no cmd? - by Dr_Pawno - 17.05.2011, 14:39
Re: [AJUDA]O que, que tem de erro no cmd? - by DPS|NeW| - 17.05.2011, 14:53
Re: [AJUDA]O que, que tem de erro no cmd? - by Dr_Pawno - 17.05.2011, 15:00
Re: [AJUDA]O que, que tem de erro no cmd? - by DPS|NeW| - 17.05.2011, 15:41

Forum Jump:


Users browsing this thread: 2 Guest(s)