10.01.2015, 02:06
ME AJUDA PFV TA DANDO ERRO
ERROR
Quote:
CMDpawn(playerid, params[]) { if(!IsPlayerAdmin(playerid) && PlayerInfo[playerid][Admin] < 3)return SendClientMessage(playerid,Cor_Erro,NaoAdmin); new ID; if(!IsPlayerConnected(ID)) return SendClientMessage(playerid,Cor_Erro,"O jogador nгo estб conectado"); if(sscanf(params,"d",ID)) return SendClientMessage(playerid,Amarelo,"USE: /spawn [id]"); SpawnPlayer(ID); SetPlayerInterior(ID,0); SetPlayerVirtualWorld(ID,0); new string[150], Lstring[150]; new nome[MAX_PLAYER_NAME], player[MAX_PLAYER_NAME]; GetPlayerName(playerid, nome, MAX_PLAYER_NAME); GetPlayerName(giveplayerid, player, MAX_PLAYER_NAME); format(string,sizeof(string),"[EDL ADMIN]: Vocк deu spawn no player{FF0000}%s {FFFFFF}.",player); SendClientMessage(playerid,-1,string); format(Lstring,sizeof(Lstring),"[EDL ADMIN]: O admin {FF0000}%s {FFFFFF}lhe deu spawn.",nome); SendClientMessage(giveplayerid,-1,Lstring); return 1; } |
Quote:
C:\Users\Usuario\Desktop\THE DM\gamemodes\thedm.pwn(4133) : error 017: undefined symbol "PlayerInfo" C:\Users\Usuario\Desktop\THE DM\gamemodes\thedm.pwn(4133) : warning 215: expression has no effect C:\Users\Usuario\Desktop\THE DM\gamemodes\thedm.pwn(4133) : error 001: expected token: ";", but found "]" C:\Users\Usuario\Desktop\THE DM\gamemodes\thedm.pwn(4133) : error 029: invalid expression, assumed zero C:\Users\Usuario\Desktop\THE DM\gamemodes\thedm.pwn(4133) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |