Why i cant use it? - 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: Why i cant use it? (
/showthread.php?tid=64508)
Why i cant use it? -
Schock - 04.02.2009
pawn Код:
public GateOpen(playerid)
{
new pname[24];
GetPlayerName(playerid, pname, sizeof(pname));
for(new i=0; i < GetMaxPlayers(); i++)
{
SendClientMessage(i, GREEN, "[Gate]%s is a registerd Admin ... Gate open",pname); // here
MoveObject(admingate,1067.368042, 1357.989380, 6.322992, 3.5);
SetTimer("GateClose", 5000, 0);
}
return 1;
}
public NoAdmin(playerid)
{
new pname[24];
GetPlayerName(playerid, pname, sizeof(pname));
for(new i=0; i < GetMaxPlayers(); i++)
{
SendClientMessage(i, RED, "[Gate]%s is no registerd Admin ... Gate cloased",pname); //and here
}
return 1;
}
it say
Код:
C:\DOKUME~1\Mike\Desktop\GTASER~1\GAMEMO~1\STUNTS~1.PWN(4368) : warning 202: number of arguments does not match definition
C:\DOKUME~1\Mike\Desktop\GTASER~1\GAMEMO~1\STUNTS~1.PWN(4398) : warning 202: number of arguments does not match definition
can someone help?
Re: Why i cant use it? -
sebihunter - 04.02.2009
what are the lines 4368 an 4393 in your code?
Re: Why i cant use it? -
Schock - 04.02.2009
Quote:
|
Originally Posted by Saladhunter
what are the lines 4368 an 4393 in your code?
|
scrol on the right side of first post then you see
Re: Why i cant use it? -
Auto-Sized - 04.02.2009
Formatting the message should work. Looking at it though I don't see any check if player is admin and I don't see why you need Noadmin part as this can be done in Gateopen.
Re: Why i cant use it? -
Schock - 04.02.2009
done by my self it works fine ~CLOSED~