if(strcmp(cmd, "/command", true) == 0) { tmp = strtok(cmdtext, idx); if (!strlen(tmp)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /service [police/fbi/rescue/taxi]"); else if (strcmp(tmp, "police", true) == 0) { new Float:p[3]; GetPlayerPos(playerid,p[0],p[1],p[2]); for(new i=0;i<MAX_PLAYERS;i++) { //OnPlayerCommandText(playerid, "/me55252205525220 takes out his phone and presses on some numbers"); DisablePlayerCheckpoint(i); CallRemoteFunction("OnPlayerCommandText", "is", playerid, "/me action"); SetPlayerCheckpoint(i,p[0],p[1],p[2],3.0); } } else SendClientMessage(playerid, COLOR_GREY, "USAGE: /service [police/fbi/rescue/taxi]"); return 1; }
if(strcmp(cmd, "/command", true) == 0)
{
tmp = strtok(cmdtext, idx);
if (!strlen(tmp))
return SendClientMessage(playerid, COLOR_GREY, "USAGE: /service [police/fbi/rescue/taxi]");
if (strcmp(tmp, "police", true) == 0)
{
new Float:p[3];
GetPlayerPos(playerid,p[0],p[1],p[2]);
for(new i=0;i<MAX_PLAYERS;i++)
{
//OnPlayerCommandText(playerid, "/me55252205525220 takes out his phone and presses on some numbers");
DisablePlayerCheckpoint(i);
CallRemoteFunction("OnPlayerCommandText", "is", playerid, "/me action");
SetPlayerCheckpoint(i,p[0],p[1],p[2],3.0);
}
return 1;
}
SendClientMessage(playerid, COLOR_GREY, "USAGE: /service [police/fbi/rescue/taxi]");
return 1;
}
CallRemoteFunction("OnPlayerCommandText", "is", playerid, "/me action");
CallRemoteFunction("OnPlayerCommandText", "is", i, "/me action");
stock SendClientActionToRange(radi,playerid,string[])
{
new Float:posx, Float:posy, Float:posz;
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
for (new i = 0; i <= SLOTS; i++)
if (IsPlayerConnected(i) && GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i) && GetPlayerInterior(playerid) == GetPlayerInterior(i))
{
GetPlayerPos(i, posx, posy, posz);
tempposx = (oldposx - posx);
tempposy = (oldposy - posy);
tempposz = (oldposz - posz);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
SendClientMessage(i, COLOR_PLAYERACTION, string);
}
return 1;
}
if(strcmp(cmd, "/command", true) == 0)
{
tmp = strtok(cmdtext, idx);
if (!strlen(tmp))
return SendClientMessage(playerid, COLOR_GREY, "USAGE: /service [police/fbi/rescue/taxi]");
if (strcmp(tmp, "police", true) == 0)
{
new Float:p[3], playername[32], string[64];
GetPlayerPos(playerid,p[0],p[1],p[2]);
GetPlayerName(playerid, playername, 32);
format(string, sizeof(string), "%s takes out his phone and dials 911", playername);
SendClientActionToRange(15, playerid, string)
for(new i=0;i<MAX_PLAYERS;i++)
{
DisablePlayerCheckpoint(i);
SetPlayerCheckpoint(i,p[0],p[1],p[2],3.0);
}
return 1;
}
SendClientMessage(playerid, COLOR_GREY, "USAGE: /service [police/fbi/rescue/taxi]");
return 1;
}
C:\Documents and Settings\XPPRESP3\Desktop\ссссс\filterscripts\TomNidi(FilterScript).pwn(2877) : error 017: undefined symbol "SLOTS" C:\Documents and Settings\XPPRESP3\Desktop\ссссс\filterscripts\TomNidi(FilterScript).pwn(2886) : error 017: undefined symbol "COLOR_PLAYERACTION" C:\Documents and Settings\XPPRESP3\Desktop\ссссс\filterscripts\TomNidi(FilterScript).pwn(12424) : warning 219: local variable "string" shadows a variable at a preceding level C:\Documents and Settings\XPPRESP3\Desktop\ссссс\filterscripts\TomNidi(FilterScript).pwn(15115) : warning 204: symbol is assigned a value that is never used: "gender" C:\Documents and Settings\XPPRESP3\Desktop\ссссс\filterscripts\TomNidi(FilterScript).pwn(21206) : warning 219: local variable "string" shadows a variable at a preceding level C:\Documents and Settings\XPPRESP3\Desktop\ссссс\filterscripts\1.pwn(21214) : error 001: expected token: ";", but found "for" C:\Documents and Settings\XPPRESP3\Desktop\ссссс\filterscripts\1.pwn(21224) : error 017: undefined symbol "playername" C:\Documents and Settings\XPPRESP3\Desktop\ссссс\filterscripts\1.pwn(21226) : error 017: undefined symbol "playername" C:\Documents and Settings\XPPRESP3\Desktop\ссссс\filterscripts\1.pwn(21228) : error 001: expected token: ";", but found "for" C:\Documents and Settings\XPPRESP3\Desktop\ссссс\filterscripts\1.pwn(15111) : warning 204: symbol is assigned a value that is never used: "weapname" C:\Documents and Settings\XPPRESP3\Desktop\ссссс\filterscripts\1.pwn(25082) : warning 203: symbol is never used: "slowmopill" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors.
TomNidi(FilterScript).pwn(2877) : error 017: undefined symbol "SLOTS" |
TomNidi(FilterScript).pwn(2886) : error 017: undefined symbol "COLOR_PLAYERACTION" |
1.pwn(21214) : error 001: expected token: ";", but found "for" 1.pwn(2122 ![]() |
1.pwn(21224) : error 017: undefined symbol "playername" 1.pwn(21226) : error 017: undefined symbol "playername" |