10.05.2013, 19:27
Ok, long story short, i really don't see the problems here, and you guys always do when i make these topics sooooo here i am again!
Код:
Warnings C:\Users\Jay\Desktop\FRP\gamemodes\FRP.pwn(4330) : warning 235: public function lacks forward declaration (symbol "OtherTimer") C:\Users\Jay\Desktop\FRP\gamemodes\FRP.pwn(4367) : error 017: undefined symbol "GetPlayer2DZone" C:\Users\Jay\Desktop\FRP\gamemodes\FRP.pwn(4367) : warning 202: number of arguments does not match definition C:\Users\Jay\Desktop\FRP\gamemodes\FRP.pwn(4373) : error 033: array must be indexed (variable "PlayerInfo") C:\Users\Jay\Desktop\FRP\gamemodes\FRP.pwn(4374) : error 017: undefined symbol "playerid" C:\Users\Jay\Desktop\FRP\gamemodes\FRP.pwn(4375) : error 017: undefined symbol "playerid" C:\Users\Jay\Desktop\FRP\gamemodes\FRP.pwn(4376) : error 017: undefined symbol "playerid" C:\Users\Jay\Desktop\FRP\gamemodes\FRP.pwn(4377) : error 017: undefined symbol "playerid" C:\Users\Jay\Desktop\FRP\gamemodes\FRP.pwn(4378) : error 017: undefined symbol "playerid" C:\Users\Jay\Desktop\FRP\gamemodes\FRP.pwn(4379) : error 017: undefined symbol "playerid" C:\Users\Jay\Desktop\FRP\gamemodes\FRP.pwn(4380) : error 017: undefined symbol "playerid" C:\Users\Jay\Desktop\FRP\gamemodes\FRP.pwn(4381) : error 017: undefined symbol "playerid" C:\Users\Jay\Desktop\FRP\gamemodes\FRP.pwn(4383) : error 017: undefined symbol "sizof" C:\Users\Jay\Desktop\FRP\gamemodes\FRP.pwn(4385) : error 017: undefined symbol "pFName" C:\Users\Jay\Desktop\FRP\gamemodes\FRP.pwn(4387) : error 017: undefined symbol "fid" C:\Users\Jay\Desktop\FRP\gamemodes\FRP.pwn(4397) : error 029: invalid expression, assumed zero C:\Users\Jay\Desktop\FRP\gamemodes\FRP.pwn(4397) : warning 215: expression has no effect C:\Users\Jay\Desktop\FRP\gamemodes\FRP.pwn(4397) : error 001: expected token: ";", but found "if" C:\Users\Jay\Desktop\FRP\gamemodes\FRP.pwn(4397) : error 017: undefined symbol "playerid" C:\Users\Jay\Desktop\FRP\gamemodes\FRP.pwn(4397) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 17 Errors.
Код:
public OtherTimer() { new plname[MAX_PLAYER_NAME]; new string[255]; new zonestring[28]; if(hudGlobalTime > 0 ) { hudGlobalTime--; } if(hudGlobalTime == 0) { TextDrawSetString(HudGlobal, " "); } if(hudAdminTime > 0) { hudAdminTime--; } if(hudAdminTime == 0) { TextDrawSetString(HudAdmin, " "); } for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { GetPlayerName(i, plname, sizeof(plname)); TextDrawSetString(HudName[i], plname); if(GetPlayerInterior(i) > 0) { zonestring = " "; } else { GetPlayer2DZone(i, zonestring, sizeof(zonestring)); } TextDrawSetString(HudLocation[i], zonestring); new ttext[64]; new tmpValx; if(PlayerInfo[pMember] == 1) { ttext = "LSPD"; } else if(PlayerInfo[playerid][pMember] == 2) { ttext = "FBI"; } else if(PlayerInfo[playerid][pMember] == 3) { ttext = "SWAT"; } else if(PlayerInfo[playerid][pMember] == 4) { ttext = "National Guard"; } else if(PlayerInfo[playerid][pMember] == 5) { ttext = "SFPD"; } else if(PlayerInfo[playerid][pMember] == 6) { ttext = "LVPD"; } else if(PlayerInfo[playerid][pMember] == 7) { ttext = "Mayor"; } else if(PlayerInfo[playerid][pMember] == 8) { ttext = "Hitman"; } else if(PlayerInfo[playerid][pMember] == 9) { ttext = "San News"; } { for(new j = 0; j<sizof(FamilyInfo); j++) { if(FamilyInfo[j][pFName] == PlayerInfo[i][pFMember] { format(ttext, sizeof(ttext), "%s",FamilyInfo[j][fid] tmpValx = 1; } } if(tmpValx != 1) { ttext = "Nothing"; tmpValx = 0; } } else if(PlayerInfo[playerid][pAdmin] == 1) { ttext = "Moderator"; } else if(PlayerInfo[playerid][pAdmin] == 2) { ttext = "Admin"; } else if(PlayerInfo[playerid][pAdmin] == 3) { ttext = "General Admin"; } else if(PlayerInfo[playerid][pAdmin] == 4) { ttext = "Senior Admin"; } else if(PlayerInfo[playerid][pAdmin] == 1337) { ttext = "Head Admin"; } else if(PlayerInfo[playerid][pAdmin] == 9999) { ttext = "Founder"; } else { ttext = "Civilian"; } TextDrawSetString(HudOrg[i], ttext); if(hudLocalTime[i] > 0) { hudLocalTime[i]--; } if(hudLocalTime[i] == 0) { TextDrawSetString(HudLocal[i], " "); } } } return 1; }