Jump to content
  • 0

pomoc Chrfind


Bgurf

Dotaz

Zdravím dávám do svého GM admin levely ale vypisuje mi toto

D:\Documents and Settings\David\Plocha\Test.pwn(414) : error 017: undefined symbol "chrfind"
D:\Documents and Settings\David\Plocha\Test.pwn(425) : error 010: invalid function or declaration
D:\Documents and Settings\David\Plocha\Test.pwn(427) : error 010: invalid function or declaration

a na těch rádcích je

new alvl = chrfind(' ',params) + 1;//nadefinujeme si admin level jako 2. params(chrvind
if(alevel[playerid] !> 3) return SendClientMessage(playerid,BARVA_BILA, "Nemáš admin level 2");//pokud nema admin level 2
if(alevel[playerid] < 4) return SendClientMessage(playerid,BARVA_BILA, "Nemáš admin level 2");//pokud nema admin level 1 nebo 2

Link to comment
Share on other sites

8 odpovědí na tuto otázku

Recommended Posts

  • 0

teď mi to píše toto

D:\Documents and Settings\David\Plocha\Test.pwn(381) : warning 209: function "OnDialogResponse" should return a value
D:\Documents and Settings\David\Plocha\Test.pwn(442) : error 012: invalid function call, not a valid address
D:\Documents and Settings\David\Plocha\Test.pwn(442) : warning 215: expression has no effect
D:\Documents and Settings\David\Plocha\Test.pwn(442) : warning 215: expression has no effect
D:\Documents and Settings\David\Plocha\Test.pwn(442) : error 001: expected token: ";", but found ")"
D:\Documents and Settings\David\Plocha\Test.pwn(442) : error 029: invalid expression, assumed zero
D:\Documents and Settings\David\Plocha\Test.pwn(442) : fatal error 107: too many error messages on one line

tamty už jdou jen ten první

new alvl = chrfind(' ',params) + 1;//nadefinujeme si admin level jako 2. params(chrvind ten pořád hází chybu

Link to comment
Share on other sites

  • 0

skus

 

new chrfind;

to co si zajebaaaaaaaal xDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

ja umreeeeeeeeeeeeeem xDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

 

btw, chyba ti tam toto :d

 

stock chrfind(needle, haystack[], start = 0)
{
while(haystack[start]) if(haystack[start++] == needle) return start - 1;
return -1;
}

Link to comment
Share on other sites

  • 0

to co si zajebaaaaaaaal xDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

ja umreeeeeeeeeeeeeem xDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

 

btw, chyba ti tam toto :d

 

stock chrfind(needle, haystack[], start = 0)
{
while(haystack[start]) if(haystack[start++] == needle) return start - 1;
return -1;
}

díky :d

teď mi to už jen píše

D:\Documents and Settings\David\Plocha\Test.pwn(458) : error 010: invalid function or declaration
D:\Documents and Settings\David\Plocha\Test.pwn(460) : error 010: invalid function or declaration

if(alevel[playerid] !> 3) return SendClientMessage(playerid,BARVA_BILA, "Nemáš admin level 2");//pokud nema admin level 2

if(alevel[playerid] < 4) return SendClientMessage(playerid,BARVA_BILA, "Nemáš admin level 2");//pokud nema admin level 1 nebo 2

Link to comment
Share on other sites

  • 0

if(alevel[playerid] >= 3) return SendClientMessage(playerid,BARVA_BILA, "Nemáš admin level 2");//pokud nema admin level 2
if(alevel[playerid] <= 4) return SendClientMessage(playerid,BARVA_BILA, "Nemáš admin level 2");//pokud nema admin level 1 nebo 2

 

Asi tak nejak.. Ak nepôjde skús prehodiť rovná sa.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...