SA-MP Forums Archive
warning - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: warning (/showthread.php?tid=139765)



warning - 02manchestera - 06.04.2010

Any idea what cause this warning an just to say i dont like warning

Код:
C:\Users\alex\Desktop\codmw2\gamemodes\COD5.pwn(4318) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.



Код:
}
  if (strcmp("/ranks", cmdtext, true) == 0)
 {
    ShowPlayerDialog(playerid, 1995, DIALOG_STYLE_LIST, "Ranks Of The Army", "***********General of The Army - 4500 score\n **********General - 2250 score\n *********Major General - 2000 score\n  ********Lieutenant General - 1500 score\n  *******Colonel - 1250 score\n   ******Major - 1000 score\n   *****Captain - 750 score \n    ****Lieutenant - 500 score\n    ***Sergeant - 250 score\n     **Corporal - 100 score\n      *Private - 50 score", "Cancel");
    return 1;
    }



Re: warning - boelie - 06.04.2010

check the showplayerdialog you might have something behind the , to much or less


Re: warning - [MWR]Blood - 06.04.2010

pawn Код:
ShowPlayerDialog(playerid, 1995, DIALOG_STYLE_LIST, "Ranks Of The Army", "***********General of The Army - 4500 score\n **********General - 2250 score\n *********Major General - 2000 score\n  ********Lieutenant General - 1500 score\n  *******Colonel - 1250 score\n   ******Major - 1000 score\n   *****Captain - 750 score \n    ****Lieutenant - 500 score\n    ***Sergeant - 250 score\n     **Corporal - 100 score\n      *Private - 50 score", "Ok","Cancel");
Should work now :P