09.02.2013, 20:07
The error is:
C:\Users\DELL\Desktop\Experienced Workers 1.1\gamemodes\Exworkers.pwn(10 : error 029: invalid expression, assumed zero
This is the script:
if(!strcmp(cmdtext, "/jointrucker"))
{
IsPlayerInRangeOfPoint(playerid, 1.0, 2440.4272460938, -2116, 13.546875);
{
new Text3D:label = Create3DTextLabel("Trucker", 0x10F441AA, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, -0.5);
SendClientMessage(playerid, COLOR_RED, "You have joined the truckers!");
}
else ----------------- HERE IS THE ERROR
{
SendClientMessage(playerid, 0x10F441AA, "You are not in range of the pickup");
}
return 1;
}
C:\Users\DELL\Desktop\Experienced Workers 1.1\gamemodes\Exworkers.pwn(10 : error 029: invalid expression, assumed zero
This is the script:
if(!strcmp(cmdtext, "/jointrucker"))
{
IsPlayerInRangeOfPoint(playerid, 1.0, 2440.4272460938, -2116, 13.546875);
{
new Text3D:label = Create3DTextLabel("Trucker", 0x10F441AA, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, -0.5);
SendClientMessage(playerid, COLOR_RED, "You have joined the truckers!");
}
else ----------------- HERE IS THE ERROR
{
SendClientMessage(playerid, 0x10F441AA, "You are not in range of the pickup");
}
return 1;
}