Can someone help me with a code pls? - 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)
+--- Thread: Can someone help me with a code pls? (
/showthread.php?tid=614099)
Can someone help me with a code pls? -
DarkElement - 04.08.2016
So on my server I wanted to make "Admin virtual world", and that's the code
}
CMD:aaa(playerid,params[])
{
if(playerVariables[playerid][pAdminLevel] >= 1)
{
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid,5);
SetPlayerPos(playerid, 140.1661,1367.0115,1083.8594);
SendClientMessage(playerid,COLOR_WHITE,"Welcome to the admin hq (virtualworld 1)");
}
return 1;
}
And that's the error:
http://imgur.com/a/g6ZqI
Can you solve it pls?
Re: Can someone help me with a code pls? -
Vince - 04.08.2016
There's a scrollbar. You've literally screenshot the most useless parts of the messages.
Re: Can someone help me with a code pls? -
DarkElement - 04.08.2016
I've changed the screenshot
Re: Can someone help me with a code pls? -
SyS - 04.08.2016
Most likely you have used the variable differently from the declaration like case problem.if thats not the case you forgot to declare the var.