11.09.2011, 17:38
simple i am getting a load of Bull shit Errors and i dont know how to fix em
Errors
the undefined Symbols are bull shit they are defined at the top of the script in a enum
Код:
CMD:CreateHouse(playerid, Params)
{
if(IsPlayerAdmin(playerid))
GetPlayerPos(playerid EnterPosX, EnterPosY, EnterPoZ);
if (sscanf(params, "iI("#DEFAULT_HOUSE_INTERIOR")i", CostP, SellP, interior, Slots2)) return ERROR("Usage: /AddHouse [price] (interior="#DEFAULT_HOUSE_INTERIOR") [Slots]");
if (price <= 0) return ERROR("Price given is not correct!");
if ((id = CreateHouse(EnterPosX, EnterPosY, EnterPosZ, CostP, SellP, interior, Slots2)) == INVALID_HOUSE_ID) ERROR("House could not be created! House limit "#MAX_HOUSES" may have been reached");
SendClientMessage(0xFF0000, "A House has been created);
Streamer_Update(playerid);
return 1;
}
Код:
C:\DOCUME~1\Rhys\Desktop\SAMP03~2\FILTER~1\H_D~1.PWN(398) : error 001: expected token: ",", but found "-identifier-" C:\DOCUME~1\Rhys\Desktop\SAMP03~2\FILTER~1\H_D~1.PWN(398) : error 017: undefined symbol "EnterPosX" C:\DOCUME~1\Rhys\Desktop\SAMP03~2\FILTER~1\H_D~1.PWN(398) : error 029: invalid expression, assumed zero C:\DOCUME~1\Rhys\Desktop\SAMP03~2\FILTER~1\H_D~1.PWN(398) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.


