SA-MP Forums Archive
Erors In My Mode - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Erors In My Mode (/showthread.php?tid=496429)



Erors In My Mode - gilad95 - 22.02.2014

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


Re: Erors In My Mode - Ryan_Undering - 22.02.2014

Try splitting up if statements into smaller checks?


Re: Erors In My Mode - gilad95 - 22.02.2014

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


Re: Erors In My Mode - Necip - 22.02.2014

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


Re: Erors In My Mode - gilad95 - 22.02.2014

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?


Re: Erors In My Mode - Necip - 22.02.2014

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.


Re: Erors In My Mode - gilad95 - 22.02.2014

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?


Re: Erors In My Mode - Necip - 22.02.2014

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


Re: Erors In My Mode - Dragonsaurus - 22.02.2014

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,".айрк йлем мтщеъ фчегеъ бфтймеъ");
}



Re: Erors In My Mode - gilad95 - 22.02.2014

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?