Crashing while spawning
#1

It has been a long time already I'm trying to fix this issue but can't do anything. Players frequently getting crashed while spawning, and I'm also. Plus, admins are crashing after spectating player. Some people told me it's related to objects. But I removed all objects and tested but still crashing. And someone told me SetPlayerSkin in OnPlayerSpawn can crash a player. Is that true? And how to fix this? Please help.

Thanks!
Reply
#2

Try SetSpawnInfo, it will help decrease crashes related to skin issues.
Reply
#3

Can you give an example where to put it?
Reply
#4

https://sampwiki.blast.hk/wiki/SetSpawnInfo
Reply
#5

Well, I added this to OnPlayerRequestClass.

But now I have one problem. Say I have a variable which stores player's skin.

PHP Code:
new gSkin[MAX_PLAYERS]; 
PHP Code:
public OnPlayerRequestClass(playeridclassid)
{
     
gSkin[playerid] = GetPlayerSkin(playerid);
     
SetSpawnInfo(playeridNO_TEAMgSkin[playerid], 0000.0000000);
     return 
1;

PHP Code:
CMD:myskin(playeridparams[])
{
     if(
sscanf(params,"d",params[0]) || params[0] < || params[0] == 74 || params[0] > 299) return SendClientMessage(playerid, -1"Use: /skin [1-299]");
     
gSkin[playerid] = params[0];
     return 
SetPlayerSkin(playeridparams[0]);

But I have GangWar system, and when a player spawns to special zone (/cw) his skin should be changed. I did /skin 24 (e.g). After respawning to normal zone (/cwoff) it gives me the skin which I chose in RequestClass. Please help me to solve this. Sorry for my bad english.
Reply
#6

Bumb, anyone?
Reply
#7

The coordiantes may make the player gets crashed on spawn as well
Reply
#8

what do you mean? any example?
Reply
#9

If the coordinates are kinda impossible, It may make him crash
Reply
#10

"kinda impossible" = something like 9999.99, 9999.99, 9999.99? I'm sure my coordinates aren't like this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)