C:\Users\Chrillzen\Desktop\Allt\SAMP\filterscripts\S-Cheats.pwn(143) : warning 202: number of arguments does not match definition C:\Users\Chrillzen\Desktop\Allt\SAMP\filterscripts\S-Cheats.pwn(143) : warning 202: number of arguments does not match definition C:\Users\Chrillzen\Desktop\Allt\SAMP\filterscripts\S-Cheats.pwn(158) : warning 202: number of arguments does not match definition C:\Users\Chrillzen\Desktop\Allt\SAMP\filterscripts\S-Cheats.pwn(158) : warning 202: number of arguments does not match definition C:\Users\Chrillzen\Desktop\Allt\SAMP\filterscripts\S-Cheats.pwn(173) : warning 202: number of arguments does not match definition C:\Users\Chrillzen\Desktop\Allt\SAMP\filterscripts\S-Cheats.pwn(173) : warning 202: number of arguments does not match definition C:\Users\Chrillzen\Desktop\Allt\SAMP\filterscripts\S-Cheats.pwn(187) : warning 202: number of arguments does not match definition C:\Users\Chrillzen\Desktop\Allt\SAMP\filterscripts\S-Cheats.pwn(187) : warning 202: number of arguments does not match definition C:\Users\Chrillzen\Desktop\Allt\SAMP\filterscripts\S-Cheats.pwn(194) : warning 202: number of arguments does not match definition C:\Users\Chrillzen\Desktop\Allt\SAMP\filterscripts\S-Cheats.pwn(194) : warning 202: number of arguments does not match definition C:\Users\Chrillzen\Desktop\Allt\SAMP\filterscripts\S-Cheats.pwn(201) : warning 202: number of arguments does not match definition C:\Users\Chrillzen\Desktop\Allt\SAMP\filterscripts\S-Cheats.pwn(201) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 12 Warnings.
format(string, sizeof(string), "%s, you recieved armor, health and money.", GetPlayerName(playerid)); SendClientMessage(playerid, COLOR_GREEN, string);
stock GetPlayerName(playerid)
{
new name[20]; // max player name allowed
GetPlayerName(playerid, name, 20);
return name;
}
pawn Код:
|
new pname[MAX_PLAYER_NAME]; //Defining pname as player's in-game name.
new string[156]; // Defining the string
GetPlayerName(playerid, pname, sizeof(pname)); // Using pname as getting player's name
format(string,sizeof(string), "%s, you received armor, health and money", pname); // Formating the string
SendClientMessage(playerid, COLOUR, string);
new string[128]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s, you recieved armor, health and money.", name)); SendClientMessage(playerid, COLOR_GREEN, string);
GetPlayerName(playerid, string, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s, you recieved armor, health and money.", string);
SendClientMessage(playerid, COLOR_GREEN, string);
pawn Код:
|