Still wrong,
i said: "you donīt need" but i dindīt said u MUST remove them.
Its just to make your script shorter and easier to read.
I personally donīt like the {} if u only use 1 statement in a if/else
@loveboy
remove the "if getGuid()" stuff.
Just do that stuff at connecting like "self getRank();"
You can easy write a system to give ppl access to menus/vip stuff.PHP Code:getRank()
{
if(!thread guidCheck(self getGuid()))
return;
self.rank["vip"] = true;
self.rank["god"] = true;
//also you need to move this stuff to an switch
}
guidCheck(guid)
{
switch(guid)
{
case 1234567:
return true;
default:
return false;
}
//Since we are still here ... (blabla)
return false;
}
You donīt need to use at every line if(self getGuid == 1234 || self getGuid == 213424353) etc.
You just need then: if(self.rank["vip"]) dostuff();




Reply With Quote