26.02.2017, 03:01
(
Last edited by DandyCorleone; 26/02/2017 at 04:14 AM.
)
pls Help me
Code:
D:\games\NFS 2017 Next Build\gamemodes\NFS AWAL\NFS_BussSpray.pwn(1422) : error 003: declaration of a local variable must appear in a compound block D:\games\NFS 2017 Next Build\gamemodes\NFS AWAL\NFS_BussSpray.pwn(1422) : error 017: undefined symbol "result" D:\games\NFS 2017 Next Build\gamemodes\NFS AWAL\NFS_BussSpray.pwn(1422) : warning 215: expression has no effect D:\games\NFS 2017 Next Build\gamemodes\NFS AWAL\NFS_BussSpray.pwn(1422) : error 001: expected token: ";", but found "]" D:\games\NFS 2017 Next Build\gamemodes\NFS AWAL\NFS_BussSpray.pwn(1422) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
PHP Code:
forward SprayTag_Load(extraid, type);
public SprayTag_Load(extraid, type) {
new rows = cache_num_rows();
switch(type)
{
case SPRAYTAG_THREAD_LOAD:
{
if(IsPlayerConnected(extraid))
{
for(new i; i < rows; i++)
{
if(i >= MAX_PLAYERS_TAGS)
new result[128];
cache_get_field_content(i, "id", SprayTags[extraid][i][_spSQLID] = strval(result);
cache_get_field_content(i, "owner", SprayTags[extraid][i][_spOwned], .max_len = MAX_PLAYER_NAME);
cache_get_field_content(i, "text", SprayTags[extraid][i][_spText], .max_len = MAX_PLAYER_NAME);
cache_get_field_content(i, "font", SprayTags[extraid][i][_spFont], .max_len = MAX_PLAYER_NAME);
cache_get_field_content(i, "fontsize", result, SprayTags[extraid][i][_spFontSize] = strval(result);
cache_get_field_content(i, "bold", result, SprayTags[extraid][i][_spBold] = strval(result);
cache_get_field_content(i, "color", result, SprayTags[extraid][i][_spFontColor] = strval(result);
cache_get_field_content(i, "posx", result, SprayTags[extraid][i][_spPosX] = floatstr(result);
cache_get_field_content(i, "posy", result, SprayTags[extraid][i][_spPosY] = floatstr(result);
cache_get_field_content(i, "posz", result, SprayTags[extraid][i][_spPosZ] = floatstr(result);
cache_get_field_content(i, "posrx", result, SprayTags[extraid][i][_spPosRX] = floatstr(result);
cache_get_field_content(i, "posry", result, SprayTags[extraid][i][_spPosRY] = floatstr(result);
cache_get_field_content(i, "posrz", result, SprayTags[extraid][i][_spPosRZ] = floatstr(result);
cache_get_field_content(i, "vw", result, SprayTags[extraid][i][_spVW] = strval(result);
cache_get_field_content(i, "interior", result, SprayTags[extraid][i][_spInt] = strval(result);
if(SprayTags[extraid][i][_spPosX] != 0.0)
{
SprayTag_Spawn(extraid, i);
}
i++;
}
}
}
case SPRAYTAG_THREAD_SAVE:
{
}
}
return 1;
}