COMMAND:heal(playerid, params[]) { new PID; if( sscanf( params,"u",PID ) ) return ShowPlayerDialog(playerid, Error_Dialog, DIALOG_STYLE_MSGBOX, "Klaida", "'Heal' Naudojimas: /Heal [ Nick/ID ]", "Iљeiti", ""); new string[64]; new name [MAX_PLAYER_NAME]; GetPlayerName(PID, name, MAX_PLAYER_NAME); SetPlayerHealth(PID,100); SetPlayerArmour(PID,100); strcat(string, "{FFFFFF}%s ",name); ShowPlayerDialog(playerid, Error_Dialog, DIALOG_STYLE_MSGBOX, "pagydėtę ", string, "Hide", ""); return true; }
C:\Users\Juraska\Desktop\Imporan files\SA-MP\San andreas Multi-Player my server\gamemodes\Test..pwn(328) : error 035: argument type mismatch (argument 3)
Indent your code fucktard, than it might be easier to fucking read!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!
This dumb shitass forum requires that you wait 120 seconds between posts. Please try again in 30 seconds. |
COMMAND:heal(playerid, params[])
{
new PID;
if( sscanf( params,"u",PID ) )
return ShowPlayerDialog(playerid, Error_Dialog, DIALOG_STYLE_MSGBOX, "English D:", "'Heal' Usage: /Heal [ Nick/ID ]", "Iљeiti", "");
new string[64];
new name [MAX_PLAYER_NAME];
GetPlayerName(PID, name, MAX_PLAYER_NAME);
SetPlayerHealth(PID,100);
SetPlayerArmour(PID,100);
strcat(string, "{FFFFFF}%s ",name);
ShowPlayerDialog(playerid, Error_Dialog, DIALOG_STYLE_MSGBOX, "English please D: ", string, "Hide", "");
return true;
}
Don't need to be so rude about it take a chill pill
pawn Код:
|
strcat(string, "{FFFFFF}%s ",name);
COMMAND:heal(playerid, params[])
{
new PID;
if( sscanf( params,"u",PID ) )
return ShowPlayerDialog(playerid, Error_Dialog, DIALOG_STYLE_MSGBOX, "English D:", "'Heal' Usage: /Heal [ Nick/ID ]", "Iљeiti", "");
new string[64];
new name [MAX_PLAYER_NAME];
GetPlayerName(PID, name, MAX_PLAYER_NAME);
SetPlayerHealth(PID,100);
SetPlayerArmour(PID,100);
new string2[35];
format(string2,35,"{FFFFFF}%s ",name);
strcat(string, string2);
ShowPlayerDialog(playerid, Error_Dialog, DIALOG_STYLE_MSGBOX, "English please D: ", string, "Hide", "");
return true;
}