14.08.2012, 03:56
Код:
#include <a_samp> #include <core> #include <float> public OnPlayerCommandText(playerid, cmdtext) { if (strcmp("/escudo", cmdtext, true, 10) == 0) { if(PlayerInfo[playerid][pLeader] != 1 && PlayerInfo[playerid][pMember] != 1) { SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й LSPD."); return 0x01; } else if (IsPlayerInRangeOfPoint(playerid, 6,255.3,77.4,1003.6) || IsPlayerInRangeOfPoint(playerid, 6,223.6328,186.8251,1003.0313) || IsPlayerInRangeOfPoint(playerid, 6, 233.4989,123.6518,1003.2188) || IsPlayerInRangeOfPoint(playerid, 6, 1748.5192,-1552.4083,-12.2411)) { format(string, sizeof(string), "%s retira o seu escudo do armбrio e o coloca.", sendername); ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SetPlayerHealth(playerid, 200); SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк pode retirar o escudo a qualquer momento usando, /retiraritens."); EscudoFrente(playerid); return 0x01; } else { SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й oficial ou nгo estб no Armбrio!"); return 0x01; } } if (strcmp("/escudoc", cmdtext, true, 10) == 0) { if(PlayerInfo[playerid][pLeader] != 1 && PlayerInfo[playerid][pMember] != 1) { SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й LSPD."); return 0x01; } else if (IsPlayerInRangeOfPoint(playerid, 6,255.3,77.4,1003.6) || IsPlayerInRangeOfPoint(playerid, 6,223.6328,186.8251,1003.0313) || IsPlayerInRangeOfPoint(playerid, 6, 233.4989,123.6518,1003.2188) || IsPlayerInRangeOfPoint(playerid, 6, 1748.5192,-1552.4083,-12.2411)) { format(string, sizeof(string), "%s retira o seu escudo do armбrio e o coloca nas suas costas.", sendername); ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); EscudoCostas(playerid); return 0x01; } else { SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й oficial ou nгo estб no Armбrio!"); return 0x01; } } if (strcmp("/retiraritens", cmdtext, true, 10) == 0 || strcmp("/removeritens", cmdtext, true, 10) == 0) { if(PlayerInfo[playerid][pLeader] != 1 && PlayerInfo[playerid][pMember] != 1) { SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й LSPD."); return 0x01; } if (IsPlayerInRangeOfPoint(playerid, 6,255.3,77.4,1003.6) || IsPlayerInRangeOfPoint(playerid, 6,223.6328,186.8251,1003.0313) || IsPlayerInRangeOfPoint(playerid, 6, 233.4989,123.6518,1003.2188) || IsPlayerInRangeOfPoint(playerid, 6, 1748.5192,-1552.4083,-12.2411)) { format(string, sizeof(string), "%s guarda os seus itens no armбrio.", sendername); SetPlayerHealth(playerid, 100); ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1); if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2); return 0x01; } else { SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й oficial ou nгo estб no Armбrio!"); return 0x01; } }
C:\Users\Daviwindows\Desktop\Equipe.pwn(

C:\Users\Daviwindows\Desktop\Equipe.pwn(10) : error 017: undefined symbol "PlayerInfo"
C:\Users\Daviwindows\Desktop\Equipe.pwn(10) : warning 215: expression has no effect
C:\Users\Daviwindows\Desktop\Equipe.pwn(10) : error 001: expected token: ";", but found "]"
C:\Users\Daviwindows\Desktop\Equipe.pwn(10) : error 029: invalid expression, assumed zero
C:\Users\Daviwindows\Desktop\Equipe.pwn(10) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
6 Errors.
Alguйm me ajuda?