Jump to content
  • 0

Problema /stats dialog


HacKy

Question

Asa este pus :

[pawn] new coordsstring[1024];

new coordsstring1[1024];coordsstring2[1024],coordsstring3[1024],coordsstring4[1024],statscoordsstring[1024];

format(coordsstring1, sizeof(coordsstring1),"____________________| %s |____________________",name);

SendClientMessage(playerid, COLOR_GREEN,coordsstring);

format(coordsstring2, sizeof(coordsstring2), "Level:[%d] Sex:[%s] Age:[%d] Phone:[%d] Donator:[%s] Gold:[%d] Costlevel:[%d]", level,atext,age,pnumber,drank,gold,costlevel);

SendClientMessage(playerid, COLOR_GRAD1,coordsstring);

format(coordsstring3, sizeof(coordsstring3), "Played hours:[%d] Record-Fish:[%d] Arests:[%d] Job:[%s] Respect:[%d/%d] Charity:[%d/%d]", ptime,bigfish,arrests,jtext,exp,expamount);

SendClientMessage(playerid, COLOR_GRAD3,coordsstring);

format(coordsstring4, sizeof(coordsstring4), "Cann/Coca:[%d/%d] Mats:[%d] Team:[%s] Organization:[%s] Grade:[%s] Accent[%s]",drugs,drugs2,mats,ttext,ftext,rtext,PlayerInfo[playerid][pAccent]);

SendClientMessage(playerid, COLOR_GRAD5,coordsstring);

SendClientMessage(playerid, COLOR_GREEN,"___________________________________________________________");

}

}[/pawn]

Si am aceste erori:

[pawn]C:\Users\Administrator\Desktop\Importante\OldGame.pwn(10484) : error 017: undefined symbol "coordsstring2"

C:\Users\Administrator\Desktop\Importante\OldGame.pwn(10484) : warning 215: expression has no effect

C:\Users\Administrator\Desktop\Importante\OldGame.pwn(10484) : error 001: expected token: ";", but found "]"

C:\Users\Administrator\Desktop\Importante\OldGame.pwn(10484) : error 029: invalid expression, assumed zero

C:\Users\Administrator\Desktop\Importante\OldGame.pwn(10484) : fatal error 107: too many error messages on one line

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

4 Errors.

[/pawn]

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

[pawn]

new coordstring[1024];

coordsstring1[1024];coordsstring2[1024],coordsstring3[1024],coordsstring4[1024],statscoordsstring[1024];

[/pawn]

:shocked:

Corect este

[pawn]

new coordsstring[1024],

      coordsstring1[1024],

      coordsstring2[1024],

      coordsstring3[1024],

      coordsstring4[1024],

      statscoordsstring[1024]

      ;

format(coordsstring1, sizeof(coordsstring1),"____________________| %s |____________________",name);

SendClientMessage(playerid, COLOR_GREEN,coordsstring);

format(coordsstring2, sizeof(coordsstring2), "Level:[%d] Sex:[%s] Age:[%d] Phone:[%d] Donator:[%s] Gold:[%d] Costlevel:[%d]", level,atext,age,pnumber,drank,gold,costlevel);

SendClientMessage(playerid, COLOR_GRAD1,coordsstring);

format(coordsstring3, sizeof(coordsstring3), "Played hours:[%d] Record-Fish:[%d] Arests:[%d] Job:[%s] Respect:[%d/%d] Charity:[%d/%d]", ptime,bigfish,arrests,jtext,exp,expamount);

SendClientMessage(playerid, COLOR_GRAD3,coordsstring);

format(coordsstring4, sizeof(coordsstring4), "Cann/Coca:[%d/%d] Mats:[%d] Team:[%s] Organization:[%s] Grade:[%s] Accent[%s]",drugs,drugs2,mats,ttext,ftext,rtext,PlayerInfo[playerid][pAccent]);

SendClientMessage(playerid, COLOR_GRAD5,coordsstring);

SendClientMessage(playerid, COLOR_GREEN,"___________________________________________________________");

}

}

[/pawn]

Nu inteleg de ce ai definit atatea stringuri daca folosesti doar unul  :))

communitylogosml.png

94.23.120.101:7778

Link to comment
Share on other sites

si comanda /stats:

[pawn] if (strcmp(cmd, "/stats", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

if (gPlayerLogged[playerid] != 0)

{

ShowStats(playerid,playerid);

}

else

{

SendClientMessage(playerid, COLOR_WHITE, "You are not Logged in");

}

}

return 1;

}

if(strcmp(cmd, "/dn", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

if (PlayerInfo[playerid][pAdmin] >= 1)

{

new Float:slx, Float:sly, Float:slz;

GetPlayerPos(playerid, slx, sly, slz);

SetPlayerPos(playerid, slx, sly, slz-2);

return 1;

}

else

{

SendClientMessage(playerid, COLOR_GRAD1, "  You are not an Admin !");

}

}

return 1;

}[/pawn]

Link to comment
Share on other sites

I-a inlocuieste asta [pawn]new coordsstring1[1024];coordsstring2[1024],coordsstring3[1024],coordsstring4[1024],statscoordsstring[1024];[/pawn] cu [pawn]new coordsstring1[1024],coordsstring2[1024],coordsstring3[1024],coordsstring4[1024],statscoordsstring[1024];[/pawn]

L-am rezolvat eu.

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.