Player Names
#1

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.
Reply
#2

Change:
pawn Код:
(!strcmp((name, "kIcka$$.fTWW", true)
To:
pawn Код:
(!strcmp(name, "kIcka$$.fTWW", true)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)