Error
#1

Код:
C:\Users\Andrijana\Desktop\LA-GW\gamemodes\test.pwn(1113) : warning 209: function "OnPlayerCommandText" should return a value
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/help", cmdtext, true, 10) == 0)
	{
	SendClientMessage(playerid,red,"What ya'll need?");

	}
	if (strcmp("/levelup", cmdtext, true, 10) == 0)
	if(GetPlayerMoney(playerid) <3500) return SendClientMessage(playerid,0xAA3333AA, "Not enought money!");
	GivePlayerMoney(playerid, -7500);
	SetPlayerSkin(playerid, 289);
    SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);
    SetPlayerAttachedObject(playerid,2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);
    SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);
    SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);

}
Reply


Messages In This Thread
Error - by boomerboom - 13.10.2013, 16:27
Re: Error - by xVIP3Rx - 13.10.2013, 16:27
Re: Error - by PT - 13.10.2013, 16:38

Forum Jump:


Users browsing this thread: 3 Guest(s)