expected token.
#1

PHP код:
CMD:stats2(playeridparams[])
{
    new 
id;
    if(
connected[playerid] == true) return GameTextForPlayer(playerid"~r~Spawn First"50005);
    if(
sscanf(params"u"id)) return SendClientMessage(playerid, -1"{c3c3c3}(INFO) /stats [id]");
    if(
id == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1"{c3c3c3}(INFO) That player is not connected!");
    {
         new 
iString[900];
         
format (iStringsizeof(iString), "{CECEF6}* You are viewing %s's stats."PlayerName[id]);
         
SendClientMessage(playerid, -1iString);
         
format(iString,sizeof(iString),"{00FFFF}~ Score: %i ~ Level: %i ~ Duels Won: %i ~ Duels Lost: %i ~"pInfo[id][Score], pInfo[id][Level], pInfo[id][DuelsWin], pInfo[id]DuelsLost]);
         
SendClientMessage(playerid, -1iString);
          
format(iString,sizeof(iString),"{00FFFF}~ Total Points: %i ~ Total Respect: %i ~ Total Kills: %i ~ Total Deaths: %i ~ Total Kills: %i ~ Ratio K/D: %.2f ~"pInfo[id][Points], pInfo[id][Respect], pInfo[id]Kills],pInfo[id]Deaths], floatdiv(pInfo[id][Kills], pInfo[id][Deaths]) );
         
SendClientMessage(playerid, -1iString);
         
format(iString,sizeof(iString),"{00FFFF}~ Current Kills: %i ~ Current Deaths: %i ~ "PlayerKills[id], PlayerDeaths[id]);
         
SendClientMessage(playerid, -1iString);
    }
     return 
1;

D:\Games and Apps\SA-MP LSDM Project\LS DM\gamemodes\DBv1.pwn(2937) : error 001: expected token: ",", but found "-identifier-"
D:\Games and Apps\SA-MP LSDM Project\LS DM\gamemodes\DBv1.pwn(2937) : warning 215: expression has no effect
D:\Games and Apps\SA-MP LSDM Project\LS DM\gamemodes\DBv1.pwn(2937) : error 001: expected token: ";", but found "]"
D:\Games and Apps\SA-MP LSDM Project\LS DM\gamemodes\DBv1.pwn(2937) : error 029: invalid expression, assumed zero
D:\Games and Apps\SA-MP LSDM Project\LS DM\gamemodes\DBv1.pwn(2937) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Line 2937:

PHP код:
         format(iString,sizeof(iString),"{00FFFF}~ Score: %i ~ Level: %i ~ Duels Won: %i ~ Duels Lost: %i ~"pInfo[id][Score], pInfo[id][Level], pInfo[id][DuelsWin], pInfo[id]DuelsLost]); 
lol

EDIT: FIXED JUST FORGOT SOME BRACKETS ] ] XD
Reply
#2

You're missing a bracket here: pInfo[id]DuelsLost].
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)