Command Causing Server Crash
#9

1. ToWhat <- Should be a string "towhat[size] >> towhat[64]"
2. What was the point of return 0? Dont use return 0 if you dont know what it does
3. SendPlayerMessageToAll(pid, string); you are sending message to all, usage COLOR,Message, but you were entering their ID in first parameter instead.
4. sscanf was missing string size. Ie : "us" isnt valid, "us[64]" is valid.

Aka
PHP код:
new pidtowhat//To what should be a string as you want to format it and ask player to input text
if(sscanf(params"us"pidtowhat)) //Again, ToWhat is set as intergrer but it should be a string, ie "us[size]" < meaning "us[64]"
else return 0//else to do what? return 0? Why? 
Return 0 can be used in situations such as
If you put return 0 in OnPlayerRequestClass the player wont spawn.
Reply


Messages In This Thread
Command Causing Server Crash - by SupperRobin6394 - 22.12.2015, 21:54
Re: Command Causing Server Crash - by saffierr - 22.12.2015, 22:05
Re: Command Causing Server Crash - by J0sh... - 22.12.2015, 22:12
Re: Command Causing Server Crash - by SupperRobin6394 - 22.12.2015, 22:22
Re: Command Causing Server Crash - by TwinkiDaBoss - 22.12.2015, 22:26
Re: Command Causing Server Crash - by SupperRobin6394 - 22.12.2015, 22:39
Re: Command Causing Server Crash - by TwinkiDaBoss - 22.12.2015, 22:43
Re: Command Causing Server Crash - by SupperRobin6394 - 22.12.2015, 22:51
Re: Command Causing Server Crash - by TwinkiDaBoss - 22.12.2015, 23:00

Forum Jump:


Users browsing this thread: 1 Guest(s)