#define us "Theard Readers"
if (strcmp("/shop", cmdtext, true, 10) == 0)
{
if(gTeam[playerid] == TEAM_ZOMBIE)
{
SendClientMessage(playerid, 0x9EC73DAA,"Zombies can't buy Guns !");
}
else
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Choose a gun to buy", "M4 \
{F81414}$3000(100ammo) \nAK-47 {F81414}$1500(100ammo) \nBazooka {F81414}$10000(10Ammo) \n\
Sniper Rifle {F81414}$7000(50ammo) \nGrenades {F81414}$8000(10ammo) \nMolotov {F81414}$400(10ammo)\
\nColt {F81414}$500(100ammo) \nCombat Shotgun {F81414}$6000(100ammo) \nUZI {F81414}$900(100ammo) \
\nMP5 {F81414}$1000(100ammo) \n ", "Buy", "Cancel"); // You can change the dialog ID to your own
}
return 1;
}
C:\DOCUME~1\mrich\Bureau\ANEPAS~1\ZOMBIE~1\GAMEMO~1\ZMRP.pwn(842) : warning 202: number of arguments does not match definition C:\DOCUME~1\mrich\Bureau\ANEPAS~1\ZOMBIE~1\GAMEMO~1\ZMRP.pwn(847) : warning 202: number of arguments does not match definition C:\DOCUME~1\mrich\Bureau\ANEPAS~1\ZOMBIE~1\GAMEMO~1\ZMRP.pwn(860) : warning 202: number of arguments does not match definition C:\DOCUME~1\mrich\Bureau\ANEPAS~1\ZOMBIE~1\GAMEMO~1\ZMRP.pwn(865) : warning 202: number of arguments does not match definition C:\DOCUME~1\mrich\Bureau\ANEPAS~1\ZOMBIE~1\GAMEMO~1\ZMRP.pwn(881) : warning 202: number of arguments does not match definition C:\DOCUME~1\mrich\Bureau\ANEPAS~1\ZOMBIE~1\GAMEMO~1\ZMRP.pwn(895) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Warnings.
Try this
if (strcmp("/shop", cmdtext, true, 10) == 0) { if(gTeam[playerid] == TEAM_ZOMBIE) { SendClientMessage(playerid, 0x9EC73DAA,"Zombies can't buy Guns !"); } else { ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Choose a gun to buy", "M4 \ {F81414}$3000(100ammo) \nAK-47 {F81414}$1500(100ammo) \nBazooka {F81414}$10000(10Ammo) \n Sniper Rifle {F81414}$7000(50ammo) \nGrenades {F81414}$8000(10ammo) \nMolotov {F81414}$400(10ammo)\ \nColt {F81414}$500(100ammo) \nCombat Shotgun {F81414}$6000(100ammo) \nUZI {F81414}$900(100ammo) \nMP5 {F81414}$1000(100ammo) ", "Buy", "Cancel"); // You can change the dialog ID to your own } return 1; } |
Am I blind, would you show me the difference between his and your code?
|