Little Little Help here.! - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Little Little Help here.! (
/showthread.php?tid=251190)
Little Little Help here.! -
Alex_Obando - 26.04.2011
pawn Код:
if(strcmp(cmd, "/admins", true) == 0)
{
SendClientMessage(WHITE, "SERVER: Unknown command.");
new pname;
GetPlayerName(playerid, pname);
new reason[128];
format(reason,sizeof(reason),"%s has typed /admins he might hack now, Please check him.",pname);
SendClientMessageToAdmins(RED, reason, 1);
return 1;
}
pawn Код:
C:\Users\Alex\Desktop\CodSamp\gamemodes\COD5.pwn(7352) : error 035: argument type mismatch (argument 2)
C:\Users\Alex\Desktop\CodSamp\gamemodes\COD5.pwn(7354) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
pawn Код:
7352:SendClientMessage(WHITE, "SERVER: Unknown command.");
7354: GetPlayerName(playerid, pname);
Re: Little Little Help here.! -
tanush - 26.04.2011
HAHAHAHAHAH ok this is your last chance, unblock. change line 7352 to
pawn Код:
SendClientMessage(playerid,WHITE,"SERVER: Unknown command.");
and getpalyer name
pawn Код:
GetPlayerName(playerid,pname,sizeof(pname));
Re: Little Little Help here.! -
Ghost_BB - 26.04.2011
pawn Код:
SendClientMessage(playerid,WHITE,"Server:Unknown Command."); //you forgot to add the "playerid"
GetPlayerName(playerid, pname, sizeof(pname))
Edit: Tanush was faster.
Re: Little Little Help here.! -
tanush - 26.04.2011
-.- u copy me or u press enter after i did
Respuesta: Little Little Help here.! -
Alex_Obando - 26.04.2011
pawn Код:
C:\Users\Alex\Desktop\CodSamp\gamemodes\COD5.pwn(7354) : error 035: argument type mismatch (argument 2)
C:\Users\Alex\Desktop\CodSamp\gamemodes\COD5.pwn(7354) : error 035: argument type mismatch (argument 2)
C:\Users\Alex\Desktop\CodSamp\gamemodes\COD5.pwn(7356) : error 001: expected token: ";", but found "new"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
Re: Little Little Help here.! -
tanush - 26.04.2011
alex copy mine, for the ghost guy he made an error with ;
Re: Little Little Help here.! -
Ghost_BB - 26.04.2011
You must have forgoten to add ";" in your script when you added the new lines.
Respuesta: Little Little Help here.! -
Alex_Obando - 26.04.2011
Ok, now:
pawn Код:
C:\Users\Alex\Desktop\CodSamp\gamemodes\COD5.pwn(7354) : error 035: argument type mismatch (argument 2)
C:\Users\Alex\Desktop\CodSamp\gamemodes\COD5.pwn(7354) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Re: Little Little Help here.! -
Ghost_BB - 26.04.2011
pawn Код:
new pname[MAX_PLAYER_NAME];
Respuesta: Little Little Help here.! -
Alex_Obando - 26.04.2011
Thanks son