Player Names - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Player Names (
/showthread.php?tid=458872)
Player Names -
nor15 - 18.08.2013
pawn Код:
dcmd_ccg(playerid,params[])
{
#pragma unused params
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(!strcmp((name, "kIcka$$.fTWW", true) || !strcmp(name, "Disaster.fTWW", true)) {
MoveObject(GateKick, -2433.91, 498.14, 31.76 , 5.00); }
else return 0;
return 1;
}
I wanna that both names can use this command
but
pawn Код:
D:\Games\gamemodes\lscnr.pwn(6602) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
On Line
pawn Код:
if(!strcmp((name, "kIcka$$.fTWW", true) || !strcmp(name, "Disaster.fTWW", true))
Sorry Solved , it was a bracket.
Re: Player Names -
JimmyCh - 18.08.2013
Change:
pawn Код:
(!strcmp((name, "kIcka$$.fTWW", true)
To:
pawn Код:
(!strcmp(name, "kIcka$$.fTWW", true)