SA-MP Forums Archive
Help With 0Admin - 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 0Admin (/showthread.php?tid=262327)



Help With 0Admin - Loading... - 17.06.2011

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


Re: Help With 0Admin - [DDC]Delight - 17.06.2011

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


Re: Help With 0Admin - Loading... - 17.06.2011

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


Re: Help With 0Admin - Wesley221 - 17.06.2011

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


Re: Help With 0Admin - DRIFT_HUNTER - 17.06.2011

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


Re: Help With 0Admin - Loading... - 17.06.2011

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;
}




Re: Help With 0Admin - Loading... - 17.06.2011

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.



Re: Help With 0Admin - Loading... - 17.06.2011

nobody knows how to fix


Re: Help With 0Admin - [OC]Zero - 17.06.2011

0Admin Use zcmd so change it to zcmd.