Help With 0Admin
#1

Hi i got the script 0admin and i got no error works great but i want to add a new command gethere but when i get a gethere and add it it wont work and i took the gethere from raven rp and i get allot of error pleas help
Reply
#2

Quote:
Originally Posted by Loading...
Посмотреть сообщение
Hi i got the script 0admin and i got no error works great but i want to add a new command gethere but when i get a gethere and add it it wont work and i took the gethere from raven rp and i get allot of error pleas help
Code Pl0x
Reply
#3

Im not a good scripter thats why im like new at this
Reply
#4

Show us the code, otherwise we won't be able to do anything..
Reply
#5

You cant just rip code from one script to other it will not work (in 99% it fails)
Reply
#6

this is the command
Quote:

if(strcmp(cmd, "/gethere", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /gethere [playerid/PartOfName]");
return 1;
}
new Floatlocx,Floatlocy,Floatlocz;
new plo;
plo = ReturnUser(tmp);
GetPlayerName(playerid,sendername,sizeof(sendernam e));
GetPlayerName(plo, giveplayer, sizeof(giveplayer));
if (IsPlayerConnected(plo))
{
if(plo != INVALID_PLAYER_ID)
{
if (PlayerInfo[playerid][pAdmin] >= 4)
{
GetPlayerPos(playerid, plocx, plocy, plocz);
if(PlayerInfo[playerid][pInt] > 0)
{
SafeSetPlayerInterior(plo,PlayerInfo[playerid][pInt]);
PlayerInfo[plo][pLocal] = PlayerInfo[playerid][pLocal];
}
if(PlayerInfo[playerid][pInt] == 0)
{
SafeSetPlayerInterior(plo,0);
}
if(plocz > 930.0 && PlayerInfo[playerid][pInt] == 0) //the highest land point in sa = 526.8
{
SafeSetPlayerInterior(plo,1);
PlayerInfo[plo][pInt] = 1;
}
if (GetPlayerState(plo) == 2)
{
TelePos[plo][0] = 0.0;
TelePos[plo][1] = 0.0;
new tmpcar = GetPlayerVehicleID(plo);
SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
}
else
{
SafeSetPlayerPos(plo,plocx,plocy+2, plocz);
}
SetPlayerVirtualWorld(plo, PlayerInfo[playerid][pVirWorld]);
format(string,sizeof(string), "[ADMIN]: %s Has teleported to %s (%d) at their Pos",sendername,giveplayer,plo);
ABroadCast(COLOR_LIGHTRED,string, 5);
DisablePlayerCheckpoint(plo);
OnPlayerExitFood(plo);
if(BizzEntered[playerid] != 9999)
{
BizzEntered[plo] = BizzEntered[playerid];
}
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has Teleported %s to Himself",d,m,y,h,mi,s,sendername,giveplayer);
AdminLog(string);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "** you are not authorized to use that command!");
}
}
}
else
{
format(string, sizeof(string), "* %d is not an active player.", plo);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}

Reply
#7

this are error when adding to 0admin
Код:
C:\Users\Family\Desktop\BurnOutCity v2.0\filterscripts\0Admin.pwn(2816) : error 017: undefined symbol "cmd"
C:\Users\Family\Desktop\BurnOutCity v2.0\filterscripts\0Admin.pwn(2820) : error 017: undefined symbol "tmp"
C:\Users\Family\Desktop\BurnOutCity v2.0\filterscripts\0Admin.pwn(2820) : error 017: undefined symbol "strtok"
C:\Users\Family\Desktop\BurnOutCity v2.0\filterscripts\0Admin.pwn(2821) : error 017: undefined symbol "tmp"
C:\Users\Family\Desktop\BurnOutCity v2.0\filterscripts\0Admin.pwn(2823) : error 017: undefined symbol "COLOR_GRAD2"
C:\Users\Family\Desktop\BurnOutCity v2.0\filterscripts\0Admin.pwn(2828) : error 017: undefined symbol "ReturnUser"
C:\Users\Family\Desktop\BurnOutCity v2.0\filterscripts\0Admin.pwn(2829) : error 017: undefined symbol "sendername"
C:\Users\Family\Desktop\BurnOutCity v2.0\filterscripts\0Admin.pwn(2829) : error 017: undefined symbol "sendername"
C:\Users\Family\Desktop\BurnOutCity v2.0\filterscripts\0Admin.pwn(2829) : error 029: invalid expression, assumed zero
C:\Users\Family\Desktop\BurnOutCity v2.0\filterscripts\0Admin.pwn(2829) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


10 Errors.
Reply
#8

nobody knows how to fix
Reply
#9

0Admin Use zcmd so change it to zcmd.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)