Erors In My Mode
#1

Hello everyone I tried to build activities and have some damned I can not fix so I thought if you can help me.

erors:
Quote:

D:\GTA SA\Samp Server\gamemodes\PHC.pwn(2994) : error 075: input line too long (after substitutions)D:\GTA SA\Samp Server\gamemodes\PHC.pwn(2995) : error 029: invalid expression, assumed zero
D:\GTA SA\Samp Server\gamemodes\PHC.pwn(2995) : error 001: expected token: ";", but found "return"
D:\GTA SA\Samp Server\gamemodes\PHC.pwn(2995) : error 037: invalid string (possibly non-terminated string)
D:\GTA SA\Samp Server\gamemodes\PHC.pwn(2995) : fatal error 107: too many error messages on one line


Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.

Lines:
Quote:

if(!strcmp(cmd, "/Kill", true)) return SetPlayerHealth(playerid,0);

if(InMini[playerid] == 1 && !IsPlayerXAdmin(playerid) || InWar[playerid] == 1 && !IsPlayerXAdmin(playerid) || InBoom[playerid] == 1 && !IsPlayerXAdmin(playerid) || InWeapons[playerid] == 1 && !IsPlayerXAdmin(playerid) || InMonster[playerid] == 1 && !IsPlayerXAdmin(playerid) || InSwar[playerid] == 1 && !IsPlayerXAdmin(playerid) || InTanks[playerid] == 1 && !IsPlayerXAdmin(playerid) || || InDrisa[playerid] == 1 && !IsPlayerXAdmin(playerid) return SendClientMessage(playerid,COLOR_KRED,".айрк йлем мтщеъ фчегеъ бфтймеъ");

My English is not so good sorry and thank those who help
Reply
#2

Try splitting up if statements into smaller checks?
Reply
#3

Quote:
Originally Posted by Ryan_Undering
Посмотреть сообщение
Try splitting up if statements into smaller checks?
Sorry I did not understand

Could you just get me that you send me, I've just been sick about it I can not fix and I tried already full
Reply
#4

First of all, put your code in [pawn] tags. And tell us which specific line the error is at.
Reply
#5

Quote:
Originally Posted by Necip
Посмотреть сообщение
First of all, put your code in [pawn] tags. And tell us which specific line the error is at.
This Eror
PHP код:
error 075input line too long (after substitutions
This Line
PHP код:
if(!strcmp(cmd"/kill"true))return SetPlayerHealth(playerid0); 
And This Erors
PHP код:
error 001expected token")"but found "return"
error 037invalid string (possibly non-terminated string)
error 029invalid expressionassumed zero
fatal error 107
too many error messages on one line 
This Line
PHP код:
if(InMini[playerid] == && !IsPlayerXAdmin(playerid) || InWar[playerid] == && !IsPlayerXAdmin(playerid) || InBoom[playerid] == && !IsPlayerXAdmin(playerid) || InWeapons[playerid] == && !IsPlayerXAdmin(playerid) || InMonster[playerid] == && !IsPlayerXAdmin(playerid) || InSwar[playerid] == && !IsPlayerXAdmin(playerid) || InTanks[playerid] == && !IsPlayerXAdmin(playerid) || InDrisa[playerid] == && !IsPlayerXAdmin(playerid)return SendClientMessage(playerid,COLOR_KRED,"айрк йлем мтщеъ фчегеъ лащш аъд бфтймеъ"); 
You mean like this?
Reply
#6

Yea, that is ok but your command is badly worked. Like Ryan said, try splitting up so it looks better and so you can find easier the problems.
Reply
#7

Quote:
Originally Posted by Necip
Посмотреть сообщение
Yea, that is ok but your command is badly worked. Like Ryan said, try splitting up so it looks better and so you can find easier the problems.
I mean split How do I do this?
Reply
#8

Look, put all of your code on [pawn] [*/pawn] tags(without the *), and I will try to do it for you.
Reply
#9

pawn Код:
if(!strcmp(cmd, "/Kill", true)) return SetPlayerHealth(playerid,0);
if(!IsPlayerXAdmin(playerid))
{
    if(InMini[playerid] == 1 || InWar[playerid] == 1 || InBoom[playerid] == 1 || InWeapons[playerid] == 1 || InMonster[playerid] == 1 || InSwar[playerid] == 1 || InTanks[playerid] == 1 || InDrisa[playerid] == 1)
    return SendClientMessage(playerid,COLOR_KRED,".айрк йлем мтщеъ фчегеъ бфтймеъ");
}
Reply
#10

Quote:
Originally Posted by Necip
Посмотреть сообщение
Look, put all of your code on [pawn] [*/pawn] tags(without the *), and I will try to do it for you.
I'm sorry I do not understand it pawn tag you mean file Pawn?and send to you the file?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)