many warnings[+rep]
#5

I will try to help you,sorry for my bad english...

Warnings:

1.Symbol is assigned a value that is never used:

Код:
public OnGameModeInit()
{
new blabla;
blabla = CreatePickup(...);
//codee
}
// If you dont use that define(in this case pickup) later,that warning will show!!
2.Function "OnPlayerKeyStateChange" should return a value and function "OnPlayerStateChange" should return a value;

Код:
OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
SendClientMessage(playerid, -1, "Example!");
//if you dont return value at the end of the callback warning will show,in this case yes,baceacuse I dont return value in this example
}
Код:
OnPlayerStateChange(playerid, newstate, oldstate)
{
SendClientMessage(playerid, -1, "You have been change your state!");
return 1;
//if you dont return value at the end of the callback warning will show,in this case NO,baceacuse I return value in this example...
}
I will edit this post,when I have free time to resolve your other warnings
Sorry for my bad english
Reply


Messages In This Thread
many warnings[+rep] - by Chris_Morrison - 05.11.2012, 13:37
Re: many warnings[+rep] - by Stu1 - 05.11.2012, 13:56
Re: many warnings[+rep] - by Chris_Morrison - 05.11.2012, 16:24
Re: many warnings[+rep] - by Sinner - 05.11.2012, 16:40
Re: many warnings[+rep] - by Plovix - 05.11.2012, 16:55

Forum Jump:


Users browsing this thread: 1 Guest(s)