Errors
#1

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/eventomotos", true) == 0)
    {
        if(Eventopolis[playerid] = 1;
        {
            SendClientMessage(playerid, -1 "No puedes abrir un nuevo evento! Primero termina con el evento de policias contra ladrones!");
        }
        else
        {
        SetPlayerVirtualWorld(playerid, 9);
       
        return 1;
    }
return 0;
pawn Код:
C:\Users\Alex\Documents\GTA San Andreas User Files\SAMP\SAMP\Bot\filterscripts\TEST2.pwn(263) : warning 211: possibly unintended assignment
C:\Users\Alex\Documents\GTA San Andreas User Files\SAMP\SAMP\Bot\filterscripts\TEST2.pwn(263) : error 001: expected token: ")", but found ";"
C:\Users\Alex\Documents\GTA San Andreas User Files\SAMP\SAMP\Bot\filterscripts\TEST2.pwn(263) : error 036: empty statement
C:\Users\Alex\Documents\GTA San Andreas User Files\SAMP\SAMP\Bot\filterscripts\TEST2.pwn(265) : error 001: expected token: ",", but found "-string-"
C:\Users\Alex\Documents\GTA San Andreas User Files\SAMP\SAMP\Bot\filterscripts\TEST2.pwn(265) : warning 215: expression has no effect
C:\Users\Alex\Documents\GTA San Andreas User Files\SAMP\SAMP\Bot\filterscripts\TEST2.pwn(265) : error 001: expected token: ";", but found ")"
C:\Users\Alex\Documents\GTA San Andreas User Files\SAMP\SAMP\Bot\filterscripts\TEST2.pwn(265) : error 029: invalid expression, assumed zero
C:\Users\Alex\Documents\GTA San Andreas User Files\SAMP\SAMP\Bot\filterscripts\TEST2.pwn(265) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.
Reply
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/eventomotos", true) == 0)
    {
        if(Eventopolis[playerid] == 1)
        {
            SendClientMessage(playerid, -1 "No puedes abrir un nuevo evento! Primero termina con el evento de policias contra ladrones!");
        }
        else
        {
            SetPlayerVirtualWorld(playerid, 9);
        }
        return 1;
    }
    return 0;
}
Reply
#3

pawn Код:
CMD:eventomotos(playerid, params)
{

    new id, reason[128];
    if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid, COLOR_WHITE, "You need to be a admin to use that command!");
    if(Eventopolis[playerid] == 1) return SendClientMessage(playerid, -1, "No puedes abrir un nuevo evento! Primero termina con el evento de policias contra ladrones!");
    if(Eventojaula[playerid] == 1) return SendClientMessage(playerid, -1, "No puedes abrir un nuevo evento! Primero termina con el evento de la jaula!");
    if(Eventomotos[playerid] == 1) return SendClientMessage(playerid, -1, "Ya hay un evento de motos corriendo!");
    else if(sscanf(params, "us", id, reason))SendClientMessage(playerid, COLOR_WHITE, "Usage: /kick [id/name][reason]");
    {

        SetPlayerPos(playerid, -1803.5037,-587.1879,15.9822);
        SetPlayerVirtualWorld(playerid, 9);
        Eventomotos[playerid] = 1;
    }
    return 1;
}
Reply
#4

Wich lines are that ?
Should we guess the lines with the errors in it ?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)