18.07.2010, 07:19
I was trying to vreate a anti attacker alarm in my A51 server but i didnt have time and i didnt get how to format a string correctly i just took a string of and FS so here it is:
/facepalm
And i get these errors:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 3.0, 249.0186,1842.6013,8.7672))
{
CreateExplosion(249.0186,1842.6013,8.7672, 2, Float:5)
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
new string[128]; new playerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s Was Exploded by the anti attack!", playerName);
SendClientMessage(i, COLOR_RED, string);
}
And i get these errors:
pawn Код:
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\BreakIn.pwn(124) : error 017: undefined symbol "playerid"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\BreakIn.pwn(127) : error 001: expected token: ";", but found "}"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\BreakIn.pwn(128) : warning 217: loose indentation
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\BreakIn.pwn(131) : error 017: undefined symbol "playerid"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\BreakIn.pwn(136) : warning 217: loose indentation
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\BreakIn.pwn(286) : warning 211: possibly unintended assignment
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\BreakIn.pwn(290) : warning 211: possibly unintended assignment
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\BreakIn.pwn(389) : warning 217: loose indentation
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\BreakIn.pwn(390) : warning 217: loose indentation
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\BreakIn.pwn(502) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.