Problem with strlen.
#1

I'm having a small problem when I add strlen. When I compile the script, the compiler automaticly crashes. The code is below:

Код:
new slength = Strlen(itemname);
if(PlayerBackpack[playerid][0][Itemstored] == 0) { strins(PlayerBackpack[playerid][0][Item], itemname, slength ); }
if(PlayerBackpack[playerid][1][Itemstored] == 0) { strins(PlayerBackpack[playerid][1][Item], itemname, slength ); }
if(PlayerBackpack[playerid][2][Itemstored] == 0) { strins(PlayerBackpack[playerid][2][Item], itemname, slength ); }
if(PlayerBackpack[playerid][3][Itemstored] == 0) { strins(PlayerBackpack[playerid][3][Item], itemname, slength ); }
if(PlayerBackpack[playerid][4][Itemstored] == 0) { strins(PlayerBackpack[playerid][4][Item], itemname, slength ); }
Reply


Messages In This Thread
Problem with strlen. - by Carlton - 07.03.2010, 12:14
Re: Problem with strlen. - by ¤Adas¤ - 07.03.2010, 12:18
Re: Problem with strlen. - by Carlton - 07.03.2010, 12:19
Re: Problem with strlen. - by ¤Adas¤ - 07.03.2010, 12:21
Re: Problem with strlen. - by Carlton - 07.03.2010, 12:25
Re: Problem with strlen. - by ¤Adas¤ - 07.03.2010, 13:05
Re: Problem with strlen. - by Carlton - 07.03.2010, 13:07
Re: Problem with strlen. - by ¤Adas¤ - 07.03.2010, 13:24

Forum Jump:


Users browsing this thread: 4 Guest(s)