if(strcmp(cmd, "/blah", true) ==0 || strcmp(cmd, "/blah1", true) ==0)
CMD:aa(playerid)
{
SendClientMessage(playerid, -1, "Oi");
return 1;
}
CMD:bb(playerid) return cmd_aa(playerid);
CMD:forumsamp(playerid)
{
SendClientMessage(playerid,-1,"FORUM SAMP OWNA!)");
return 1;
}
CMD:fs(playerid) return cmd_forumsamp(playerid);
CMD:globalchat(playerid,params[])
{
new texto,string[1000],snd[MAX_PLAYER_NAME];
if(sscanf(params,"s",texto)) return SendClientMessage(playerid, -1, "Use: globalchat (Texto)");
GetPlayerName(playerid,snd,sizeof(snd));
format(string, sizeof(string), "%s diz: %s", snd, texto);
SendClientMessageToAll(-1, string);
return 1;
}
entгo ficaria: pawn Код:
e Como faзo com um comando que tem params? Exemplo: pawn Код:
|
CMD:globalchat2(playerid, params[]) return cmd_globalchat(playerid, params[]);
C:\Documents and Settings\Antonio Rodrigues\Desktop\The Walking Dead RPG\gamemodes\TWD.pwn(311) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
CMD:g(playerid,params[]) return CMD:gritar(playerid,params[]);
pawn Код:
pawn Код:
|
CMD:g(playerid,params[]) return CMD:gritar(playerid,params[]);
CMD:g(playerid,params[]) return cmd_gritar(playerid,params);