23.02.2014, 19:17
Someone got a script on /gotoco or /gotopos i really need that?
CMD:gotoco(playerid, params[])
{
new int, Float:x, Float:y, Float:z;
// You can add your admin code here like "if(PlayerInfo[playerid][pAdmin]..."
if(sscanf(params, "fffi", x,y,z, int)) return SendClientMessage(playerid, -1, "USAGE: /gotoco [x] [y] [z] [interior]");
SetPlayerPos(playerid, x,y,z);
SetPlayerInterior(playerid, int);
return 1;
}
CMD:gotopos(playerid, params[])
{
return cmd_gotoco(playerid, params);
}
CMD:gotoco(playerid, params[])
{
new int, Float:x, Float:y, Float:z;
// You can add your admin code here like "if(PlayerInfo[playerid][pAdmin]..."
if(sscanf(params, "fffi", x,y,z, int)) return SendClientMessage(playerid, -1, "USAGE: /gotoco [x] [y] [z] [interior]");
SetPlayerPos(playerid, x,y,z);
SetPlayerInterior(playerid, int);
return 1;
}
CMD:gotoco(playerid, params[])
{
if(!IsPlayerAdmin) return SendClientMessage(playerid, 0xFF0000AA, "You need to be an admin to use this command.");
new int, Float:x, Float:y, Float:z;
if(sscanf(params, "fffi", x,y,z, int)) return SendClientMessage(playerid, -1, "USAGE: /gotoco [x] [y] [z] [interior]");
SetPlayerPos(playerid, x,y,z);
SetPlayerInterior(playerid, int);
return 1;
}
C:\Users\JACOLA03\Desktop\cops and robbers\gamemodes\1.1.1.pwn(8706) : error 017: undefined symbol "PlayerInfo" C:\Users\JACOLA03\Desktop\cops and robbers\gamemodes\1.1.1.pwn(8706) : warning 215: expression has no effect C:\Users\JACOLA03\Desktop\cops and robbers\gamemodes\1.1.1.pwn(8706) : error 001: expected token: ";", but found "]" C:\Users\JACOLA03\Desktop\cops and robbers\gamemodes\1.1.1.pwn(8706) : error 029: invalid expression, assumed zero C:\Users\JACOLA03\Desktop\cops and robbers\gamemodes\1.1.1.pwn(8706) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
CMD:gotoco(playerid, params[]) { new int, Float, Float:y, Float:z; if(PlayerInfo[playerid][pAdmin] if(sscanf(params, "fffi", x,y,z, int)) return SendClientMessage(playerid, -1, "USAGE: /gotoco [x] [y] [z] [interior]"); SetPlayerPos(playerid, x,y,z); SetPlayerInterior(playerid, int); return 1; } |
CMD:gotoco(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] == 0) return SendClientMessage(playerid, 0xFF0000AA, "You need to be an admin to use this command.");
new int, Float:x, Float:y, Float:z;
if(sscanf(params, "fffi", x,y,z, int)) return SendClientMessage(playerid, -1, "USAGE: /gotoco [x] [y] [z] [interior]");
SetPlayerPos(playerid, x,y,z);
SetPlayerInterior(playerid, int);
return 1;
}
pawn Код:
|
C:\Users\JACOLA03\Desktop\cops and robbers\gamemodes\1.1.1.pwn(8705) : error 017: undefined symbol "PlayerInfo" C:\Users\JACOLA03\Desktop\cops and robbers\gamemodes\1.1.1.pwn(8705) : warning 215: expression has no effect C:\Users\JACOLA03\Desktop\cops and robbers\gamemodes\1.1.1.pwn(8705) : error 001: expected token: ";", but found "]" C:\Users\JACOLA03\Desktop\cops and robbers\gamemodes\1.1.1.pwn(8705) : error 029: invalid expression, assumed zero C:\Users\JACOLA03\Desktop\cops and robbers\gamemodes\1.1.1.pwn(8705) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
enum PInfo
{
pAdmin
}
new PlayerInfo[MAX_PLAYERS][PInfo];