Estos Errores
#1

Quiero implementar esto para terminar un trabajo;

Код:
            if(dialogid == 115 && response)
            {
                	Info[playerid][pgskin] = GetPlayerSkin(playerid);
                    if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
                    SetPVarInt(playerid, "Miner", 1);
                    Oldskin[playerid] = GetPlayerSkin(playerid);
                    SetPlayerSkin(playerid, 27);
                    SetPlayerCheckpoint(playerid,-124.1474,-1549.5060,2.6631,6.0);
                    SetPlayerAttachedObject(playerid,1, 18634, 14, 0.333391, 0.000000, 0.042249, 358.219909, 268.014739, 170.032974, 2.003867, 1.764811, 1.579773);
                    SendClientMessage(playerid, COLOR_WHITE, "{EEADDF}>{FFFFFF}Ve y empieza a picar...!");
                    ApplyAnimation(playerid,"BASEBALL","Bat_4",4.1,1,1,1,0,11000);
                    ClearAnimations(playerid);
                    papillo[playerid] = 1;
            }
            if(dialogid == 116 && response)
            {
                    SetPVarInt(playerid, "Miner", 0);
                    SetPlayerSkin(playerid,Oldskin[playerid]);
                    DisablePlayerCheckpoint(playerid);
                    GivePlayerCash(playerid, kg[playerid] * 3);
                    format(string, sizeof(string), "{EEADDF}>{FFFFFF}Vendiste  %d$ escombros y ganaste %d",kg[playerid],kg[playerid]* 2);
                    SendClientMessage(playerid, COLOR_SYSTEM, string);
                    kg[playerid] = 0;
                    papillo[playerid] = 0;
                    if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
                    if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);
                    if(IsPlayerAttachedObjectSlotUsed(playerid,3)) RemovePlayerAttachedObject(playerid,3);
            }
y me salen estos errores en la primera linea;

Код:
error 002: only a single statement (or expression) can follow each "case"
error 029: invalid expression, assumed zero
y estб linea de eso mismo que publique;

Код:
format(string, sizeof(string), "{EEADDF}>{FFFFFF}Vendiste  %d$ escombros y ganaste %d",kg[playerid],kg[playerid]* 2);
Tira estos errores;

Код:
error 017: undefined symbol "string"
error 017: undefined symbol "string"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Reply


Messages In This Thread
Estos Errores - by Fagrinht - 05.07.2014, 22:09
Respuesta: Estos Errores - by Zume - 05.07.2014, 23:47

Forum Jump:


Users browsing this thread: 1 Guest(s)