22.12.2015, 23:00
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
Return 0 can be used in situations such as
If you put return 0 in OnPlayerRequestClass the player wont spawn.
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 pid, towhat; //To what should be a string as you want to format it and ask player to input text
if(sscanf(params, "us", pid, towhat)) //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?
If you put return 0 in OnPlayerRequestClass the player wont spawn.

