[HELP]samp-server.
#2

Maybe if you try this?:

PHP код:
if(strcmp("/zemiseme"cmdtexttrue9) == 0)
    {
        new 
string[128], sjeme;
        if(
sscanf(cmdtext"d"sjeme))
        {
            
SendClientMessage(playeridCOLOR_WHITE"{168BFF}INFO: {959561} /sjeme [kolicina]" );
            
SendClientMessage(playeridCOLOR_GREY"{B55B5B}Cijena po sjemenu: {009249}75$");
        }
        else
        {
            if(
sjeme >= 1)
            {
                if(
PlayerToPoint(playerid2.5330.3539,1123.0370,1083.8828))
                {

                    
PlayerInfo[playerid][pSjeme] += sjeme;
                    
GivePlayerMoney(playerid, -sjeme*75);
                    
format(stringsizeof(string), "{FF8080}Kupio si {6FDD00}%d {FF8080}sjemena! Sada ih imas {6FDD00}%d"sjemePlayerInfo[playerid][pSjeme]);
                    
SendClientMessage(playerid0xFF8040FFstring);
                }
                else 
SendClientMessage(playeridCOLOR_GREY"Nisi kod covjeka sa sjemenom!");
            }
            else 
SendClientMessage(playeridCOLOR_GREY"Ne idi ispod 1!");
        }
        return 
1;
    } 
If its not working, then check your sscanf plugin.
Reply


Messages In This Thread
[HELP]samp-server. - by mayk - 05.10.2011, 18:51
Re: [HELP]samp-server. - by WoodPecker - 05.10.2011, 19:03
Re: [HELP]samp-server. - by mayk - 05.10.2011, 19:05
Re: [HELP]samp-server. - by Max_Coldheart - 05.10.2011, 19:22
Re: [HELP]samp-server. - by mayk - 05.10.2011, 19:23
Re: [HELP]samp-server. - by Max_Coldheart - 05.10.2011, 19:27
Re: [HELP]samp-server. - by mayk - 05.10.2011, 19:31

Forum Jump:


Users browsing this thread: 3 Guest(s)