11.04.2011, 22:31
Estava fazendo meu script quando ocorreu os seguintes erros:
Posso estar errado, mais no meu ponto de vista parece esta certo! (Me corrija se eu estiver errado)
Код:
C:\Users\BrunoGaio\Documents\BrunoGaio\sa-mp\gamemodes\BRS-RPG.pwn(83) : error 028: invalid subscript (not an array or too many subscripts): "pDead" C:\Users\BrunoGaio\Documents\BrunoGaio\sa-mp\gamemodes\BRS-RPG.pwn(83) : warning 215: expression has no effect C:\Users\BrunoGaio\Documents\BrunoGaio\sa-mp\gamemodes\BRS-RPG.pwn(83) : error 001: expected token: ";", but found "]" C:\Users\BrunoGaio\Documents\BrunoGaio\sa-mp\gamemodes\BRS-RPG.pwn(83) : error 029: invalid expression, assumed zero C:\Users\BrunoGaio\Documents\BrunoGaio\sa-mp\gamemodes\BRS-RPG.pwn(83) : fatal error 107: too many error messages on one line
pawn Код:
public OnPlayerSpawn(playerid)
{
if(pDead[playerid] == true)
{
if(pLocalCity[playerid] == LOS_SANTOS)
{
SendClientMessage(playerid, 0xFFFFFFAA, "Foi encontrado inconciente e estб em coma no hospital!");
SendClientMessage(playerid, 0xFFFFFFAA, "Aguarde {AA0000}30 Minutos{FFFFFF} emquanto se recupera.");
SetPlayerCameraPos(playerid, 1216.0933, -1411.7498, 51.5987);
SetPlayerCameraLookAt(playerid, 1215.4427, -1410.9900, 51.1236);
SetPlayerPos(playerid, 1218.9623, -1416.0389, 47.2578);
TogglePlayerControllable(playerid, 1);
}
else if(pLocalCity[playerid] == SAN_FIERRO)
{
SendClientMessage(playerid, 0xFFFFFFAA, "Foi encontrado inconciente e estб em coma no hospital!");
SendClientMessage(playerid, 0xFFFFFFAA, "Aguarde {AA0000}30 Minutos{FFFFFF} emquanto se recupera.");
SetPlayerCameraPos(playerid, -2486.7666, 557.6091, 62.0576);
SetPlayerCameraLookAt(playerid, -2487.6855, 558.0142, 61.7373);
SetPlayerPos(playerid, 2541.9063, 663.0291, 14.4592);
TogglePlayerControllable(playerid, 1);
}
else if(pLocalCity[playerid] == LAS_VENTURAS)
{
SendClientMessage(playerid, 0xFFFFFFAA, "Foi encontrado inconciente e estб em coma no hospital!");
SendClientMessage(playerid, 0xFFFFFFAA, "Aguarde {AA0000}30 Minutos{FFFFFF} emquanto se recupera.");
SetPlayerCameraPos(playerid, 1608.6876, 1884.1504, 37.4728);
SetPlayerCameraLookAt(playerid, 1608.6743, 1883.1437, 36.9677);
SetPlayerPos(playerid, 1621.7511, 1890.3400, 10.8203);
TogglePlayerControllable(playerid, 1);
}
}