SA-MP Forums Archive
Errors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Errors (/showthread.php?tid=96086)



Errors - XxJoexX - 06.09.2009


Errors
C:\Users\Joe\Desktop\SAMPSERVER (1)\gamemodes\CJFreeRoamMain.pwn(1051) : warning 217: loose indentation
C:\Users\Joe\Desktop\SAMPSERVER (1)\gamemodes\CJFreeRoamMain.pwn(1051) : error 029: invalid expression, assumed zero
C:\Users\Joe\Desktop\SAMPSERVER (1)\gamemodes\CJFreeRoamMain.pwn(1051) : error 017: undefined symbol "pickupid"
C:\Users\Joe\Desktop\SAMPSERVER (1)\gamemodes\CJFreeRoamMain.pwn(1053) : error 017: undefined symbol "pickupid"
C:\Users\Joe\Desktop\SAMPSERVER (1)\gamemodes\CJFreeRoamMain.pwn(1061) : warning 217: loose indentation

-------------------------------------------------------------------------------------------------------------------------------------
Gamemode


1051 public OnPlayerPickUpPickup(pickupid,1559)
1053 if (pickupid == kickstartout)
1061 if(!strcmp(cmd, "/pl",true) || !strcmp(cmd, "/pl",true))



Re: Errors - Takumi.WS - 06.09.2009

Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
	if (pickupid == kickstartout)
	{
	do what do you want here
	}
return 1;
}
Try this


Re: Errors - dice7 - 06.09.2009

Quote:
Originally Posted by XxJoexX
1061 if(!strcmp(cmd, "/pl",true) || !strcmp(cmd, "/pl",true))[/color]
You can't use that under OnPlayerPickUpPickup since cmdtext isn't defined there