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.
Originally Posted by Kar
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. |
new string[128];
new Probber[MAX_PLAYER_NAME];
new Pstolen[MAX_PLAYER_NAME];
GetPlayerName(playerid, Pname, Pstolen, sizeof(Pname, Pstolen));
format(string, sizeof(string), "%s has Stolen %d from %s", Probber, Pstolen);
SendClientMessageToAll(0xFFFFFFF, string);
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"); }
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
Originally Posted by Kar
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"); } |
Originally Posted by Tɧ϶ Tσηί™
Quote:
|
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 string[128];
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playername));
new cash = random(60000); // random number between 1 & 60000 is the money they will get
GivePlayerMoney(playerid, cash); // Give the player the money!
format(string,sizeof(string),"%s has just stolen %s from the bank!",playername,cash);
SendClientMessageToAll(COLOR_WHITE,string);
}
return 1;
}