Posts: 2,938
Threads: 162
Joined: May 2010
SendClientMessageToAll("%s has stolen %d From %s");
Код:
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SAMPSE~1\GAMEMO~1\COPSNR~1.pwn(403) : error 035: argument type mismatch (argument 1)
1 Error.
Posts: 2,938
Threads: 162
Joined: May 2010
i wanna make it like.. [NAME] has stolen [cash amount] from [SFBANK] or which ever other bank
Код:
if(strcmp(cmdtext, "/robbank", true) == 0) // If they type /robbank
{
if(IsPlayerInCheckpoint(playerid, 2312.6365, -6.3147, 26.7422)) // Check if they are in a checkpoint
{
new cash = random(60000); // random number between 1 & 60000 is the money they will get
GivePlayerMoney(playerid, cash); // Give the player the money!
SendClientMessageToAll("%s has stolen %d From %s");
}
from the above^ string
Код:
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SAMPSE~1\GAMEMO~1\COPSNR~1.pwn(405) : error 017: undefined symbol "Pname"
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SAMPSE~1\GAMEMO~1\COPSNR~1.pwn(405) : error 017: undefined symbol "Pname"
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SAMPSE~1\GAMEMO~1\COPSNR~1.pwn(405) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SAMPSE~1\GAMEMO~1\COPSNR~1.pwn(405) : fatal error 107: too many error messages on one line
Posts: 2,938
Threads: 162
Joined: May 2010
THX SHADOW AND VINCE PROBLEM FIXED.