27.11.2014, 20:06
I get this
Quote:
C:\Users\Callum.Acer\Desktop\TestNCRP7\gamemodes\t est.pwn(416) : warning 202: number of arguments does not match definition C:\Users\Callum.Acer\Desktop\TestNCRP7\gamemodes\t est.pwn(416) : warning 202: number of arguments does not match definition C:\Users\Callum.Acer\Desktop\TestNCRP7\gamemodes\t est.pwn(416) : error 029: invalid expression, assumed zero C:\Users\Callum.Acer\Desktop\TestNCRP7\gamemodes\t est.pwn(416) : error 001: expected token: ",", but found ";" C:\Users\Callum.Acer\Desktop\TestNCRP7\gamemodes\t est.pwn(431) : error 029: invalid expression, assumed zero C:\Users\Callum.Acer\Desktop\TestNCRP7\gamemodes\t est.pwn(431) : warning 215: expression has no effect C:\Users\Callum.Acer\Desktop\TestNCRP7\gamemodes\t est.pwn(431) : error 001: expected token: ";", but found ")" C:\Users\Callum.Acer\Desktop\TestNCRP7\gamemodes\t est.pwn(431) : error 029: invalid expression, assumed zero C:\Users\Callum.Acer\Desktop\TestNCRP7\gamemodes\t est.pwn(431) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors. |
Код:
ShowStats(playerid,targetid) { if(IsPlayerConnected(targetid)) { new sext[16], std[20], employer[64], rank[64], division[64], jtext2[20], jtext[20], pnumber[20], facfam[64]; if(PlayerInfo[targetid][pNumber] == 0) pnumber = "None"; else format(pnumber, sizeof(pnumber), "%d", PlayerInfo[targetid][pNumber]); if(PlayerInfo[targetid][pSex] == 1) { sext = "Male"; } else { sext = "Female"; } new age = PlayerInfo[targetid][pAge]; new ptime = PlayerInfo[targetid][pConnectTime]; new pot = PlayerInfo[targetid][pPot]; new crack = PlayerInfo[targetid][pCrack]; new meth = PlayerInfo[targetid][pMeth]; new Float:px,Float:py,Float:pz; new money = PlayerInfo[targetid][pCash]; new coordsstring[268], str[3000]; format(coordsstring, sizeof(coordsstring),"Age: %d | Cash: $%d | Playing hours: %d | Phone number: %s | RP Skill: %d\n", GetPlayerName(targetid), sext, age, money, ptime, pnumber,);LINE 416 strcat(str, coordsstring); if (PlayerInfo[playerid][pAdmin] >= 1) { strcat(str, coordsstring); } if (PlayerInfo[playerid][pAdmin] >= 6) { if(PlayerInfo[targetid][pAdmin] >= 1) { format(coordsstring, sizeof(coordsstring), "Accepted reports: %d | Admin Messages Sent: %d\n", PlayerInfo[targetid][pReportsAccepted], PlayerInfo[targetid][pAMSSent]); strcat(str, coordsstring); } if(PlayerInfo[playerid][pAdmin] >= 2) { format(coordsstring, sizeof(coordsstring), " Accepted help requests: %d\n",, PlayerInfo[targetid][pAcceptedHelp]);LINE 431 strcat(str, coordsstring); } } ShowPlayerDialog(playerid, DIALOG_SHOW_INFO, DIALOG_STYLE_MSGBOX, "{33AA33}General Player Information", str, "Ok", "Close"); } }