13.10.2011, 18:54
I get some errors..
PHP Code:
CMD:stats(playerid,params[]){
{
if(IsPlayerConnected(playerid))
{
new password = PlayerInfo[playerid][pPass];
new money = PlayerInfo[playerid][pCash];
new deaths = PlayerInfo[playerid][pDeaths];
new kills = PlayerInfo[playerid][pKills];
new score = PlayerInfo[playerid][pScore];
new admin = PlayerInfo[playerid][pAdmin];
new vip = PlayerInfo[playerid][pVIP];
new killpoints = PlayerInfo[playerid][pKillPoints];
new string[500];
format(string,sizeof(string),"Password: %s | Money: %d | Deaths: %d | Kills: %d | Score: %d | Admin: %d | VIP: %d | Killpoints: %d",password,money,deaths,kills,score,admin,vip,killpoints);
SendClientMessage(playerid,COLOR_WHITE,string);
}
return 1;
}
Code:
C:\Documents and Settings\Customer\Desktop\GameMode\gamemodes\gangwar.pwn(192) : error 017: undefined symbol "UserPath" C:\Documents and Settings\Customer\Desktop\GameMode\gamemodes\gangwar.pwn(194) : error 017: undefined symbol "UserPath" C:\Documents and Settings\Customer\Desktop\GameMode\gamemodes\gangwar.pwn(205) : error 017: undefined symbol "GetName" C:\Documents and Settings\Customer\Desktop\GameMode\gamemodes\gangwar.pwn(217) : error 017: undefined symbol "UserPath" C:\Documents and Settings\Customer\Desktop\GameMode\gamemodes\gangwar.pwn(228) : error 017: undefined symbol "GetName" C:\Documents and Settings\Customer\Desktop\GameMode\gamemodes\gangwar.pwn(590) : error 017: undefined symbol "UserPath" C:\Documents and Settings\Customer\Desktop\GameMode\gamemodes\gangwar.pwn(592) : error 017: undefined symbol "udb_hash" C:\Documents and Settings\Customer\Desktop\GameMode\gamemodes\gangwar.pwn(613) : error 017: undefined symbol "udb_hash" C:\Documents and Settings\Customer\Desktop\GameMode\gamemodes\gangwar.pwn(615) : error 017: undefined symbol "UserPath" C:\Documents and Settings\Customer\Desktop\GameMode\gamemodes\gangwar.pwn(650) : error 079: inconsistent return types (array & non-array) C:\Documents and Settings\Customer\Desktop\GameMode\gamemodes\gangwar.pwn(652) : warning 225: unreachable code C:\Documents and Settings\Customer\Desktop\GameMode\gamemodes\gangwar.pwn(652) : error 029: invalid expression, assumed zero C:\Documents and Settings\Customer\Desktop\GameMode\gamemodes\gangwar.pwn(652) : error 017: undefined symbol "cmd_msg" C:\Documents and Settings\Customer\Desktop\GameMode\gamemodes\gangwar.pwn(652) : error 029: invalid expression, assumed zero C:\Documents and Settings\Customer\Desktop\GameMode\gamemodes\gangwar.pwn(652) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase