Help with pawno command issues. - 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: Help with pawno command issues. (
/showthread.php?tid=261234)
Help with pawno command issues. -
R3G1ST3R - 12.06.2011
Код:
C:\Documents and Settings\Jeremy\Desktop\Backup of Carlito's Roleplay\gamemodes\crp.pwn(16768) : error 012: invalid function call, not a valid address
C:\Documents and Settings\Jeremy\Desktop\Backup of Carlito's Roleplay\gamemodes\crp.pwn(16768) : warning 215: expression has no effect
C:\Documents and Settings\Jeremy\Desktop\Backup of Carlito's Roleplay\gamemodes\crp.pwn(16768) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Jeremy\Desktop\Backup of Carlito's Roleplay\gamemodes\crp.pwn(16768) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Jeremy\Desktop\Backup of Carlito's Roleplay\gamemodes\crp.pwn(16768) : fatal error 107: too many error messages on one line
Please tell me hjow to fix it or give me a working /b and /do cmd in ZCMD format.
Re: Help with pawno command issues. -
Wesley221 - 12.06.2011
Post your code.. Can't do anything without it
Re: Help with pawno command issues. -
dud - 12.06.2011
you miss some ) or ;
check this line 16768
Re: Help with pawno command issues. -
R3G1ST3R - 12.06.2011
Код:
CMD:do(playerid, params[])
{
if(isnull(params))
return SendClientMessage(playerid, COLOR_YELLOW, "SYNTAX: /do [enviornment]");
new string[128];
format(string, sizeof(string), "%s (( %s ))", params, GetName(playerid));
SendNearbyMessage(playerid, COLOR_PURPLE, string);
return 1;
}
Код:
CMD:b(playerid, params[])
{
if(isnull(params))
return SendClientMessage(playerid, COLOR_YELLOW, "SYNTAX: /b [message]");
if(strlen(params) > 90)
return SendClientMessage(playerid, COLOR_WHITE, "ERROR: Your message cannot be longer than 90 characters.");
new string[128];
format(string, sizeof(string), "(( %s(%d): %s ))", GetName(playerid), playerid, params);
SendNearbyMessage(playerid, COLOR_PURPLE, string);
return 1;
}
stock SendNearbyMessage(playerid, color, string[])
{
new Float:Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
foreach(Player, i)
{
if(IsPlayerInRangeOfPoint(i, 20, Pos[0], Pos[1], Pos[2]))
SendClientMessage(i, color, string);
}
}