ID 0 problem - 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: ID 0 problem (
/showthread.php?tid=271597)
ID 0 problem -
MA_proking - 25.07.2011
In my server id 0 can't run properly rest can
please help
View My Video
Re: ID 0 problem -
GangsTa_ - 25.07.2011
I think it's a GTA SA bug or SA-MP one, maybe try to ask into the server support section?
Re: ID 0 problem -
MA_proking - 25.07.2011
so can I reserved id 0
Re: ID 0 problem -
iggy1 - 25.07.2011
You could try using an npc as id 0. I don't know if that will work though i still aint made an npc. I heard they take player slots though so i guess it would.
Re: ID 0 problem -
DBan - 25.07.2011
Its usually not only ID 0 when this happens on a server, so putting an NPC in ID 0 won't solve anything. Many people have posted this problem before, usually this happens when there is too much code inside your script. If that's that trucking GM, try reporting it on their topic because this usually happens with their GM.
Re: ID 0 problem -
MA_proking - 25.07.2011
no its a free roam
Re: ID 0 problem -
PotH3Ad - 25.07.2011
Do you use OnPlayerUpdate? If you do, post it if you can/want to. The problem could probably be coming from there.
Re: ID 0 problem -
RowdyrideR - 25.07.2011
it must be from a NPC Bot
Re: ID 0 problem -
MA_proking - 25.07.2011
Quote:
Originally Posted by PotH3Ad
Do you use OnPlayerUpdate? If you do, post it if you can/want to. The problem could probably be coming from there.
|
yes using
pawn Код:
forward OnPlayerUpdate(playerid);
public OnPlayerUpdate(playerid){
new name[MAX_PLAYER_NAME];
new string[128];
if(IsPlayerConnected(playerid) && AccInfo[playerid][Level] < 1 || AccInfo[playerid][pVip] < 1){
GetPlayerName(playerid,name, sizeof(name));
if(GetPlayerWeapon(playerid) == 36 ){
format(string, sizeof(string), "proking Bot: %s (id: %d) has ben kicked. Reason: Weapon Hack",name,playerid);
SendClientMessageToAll(COLOR_RUDY,string);
Kick(playerid);
}else if(GetPlayerWeapon(playerid) == 37 ){
format(string, sizeof(string), "proking Bot: %s (id: %d) has ben kicked. Reason: Flamethrower",name,playerid);
SendClientMessageToAll(COLOR_RUDY,string);
Kick(playerid);
}else if(GetPlayerWeapon(playerid) == 38 ){
format(string, sizeof(string), "proking Bot: %s (id: %d) has ben kicked. Reason: MiniGun",name,playerid);
SendClientMessageToAll(COLOR_RUDY,string);
Kick(playerid);
}
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) {
format(string, sizeof(string), "proking Bot: %s (id: %d) has ben kicked. Reason: Jetpack",name,playerid);
SendClientMessageToAll(COLOR_RUDY,string);
Kick(playerid);
}
}
return 1;
}
Re: ID 0 problem -
Berky - 25.07.2011
Maybe your script is using a timer every second and it causes ID 0 to ClearAnimations(0); Possibly..