[Help] Code ?
#1

Code
PHP код:
CMD:50(playeridparams[])
{
    if(
PlayerInfo[playerid][pConnectHours] == 50)
    {
    if(
PlayerInfo[playerid][pConnectHours] < 50) return SendClientMessage(playeridCOLOR_RED"
You are not enough 50 ConnectHours!"
);
    else
        {
            
SendClientMessageEx(playeridCOLOR_YELLOW"Full weapons - $200.000 va 20.000 Mats!");
            
GivePlayerValidWeapon(playerid2760000);
            
GivePlayerValidWeapon(playerid2460000);
            
GivePlayerValidWeapon(playerid3160000);
            
GivePlayerValidWeapon(playerid3460000);
            
GivePlayerValidWeapon(playerid2960000);
            
GivePlayerCash(playerid200000);
            
PlayerInfo[playerid][pMats] += 20000;
            return 
1;
        }
    }
    else 
SendClientMessageEx(playeridCOLOR_RED"You are not enough 50 ConnectHours!");
    return 
1;

Helpppppppp
Reply
#2

And what is the probelm? Compilation erros?!
Reply
#3

PHP код:
CMD:50(pid){ 
    if(
PlayerInfo[pid][pConnectHours] < 50) return SendClientMessage(pid,COLOR_RED,"You are not enough 50 ConnectHours!"); 
    
SendClientMessageEx(playeridCOLOR_YELLOW"Full weapons - $200.000 va 20.000 Mats!"); 
    new 
arr[]={27,24,31,34,29};
    for(new 
i,i2=sizeof(arr); i<i2i++)GivePlayerValidWeapon(pid,arr[i],60000);
    
GivePlayerCash(pid200000);
    
PlayerInfo[pid][pMats]+=20000;
    return 
1;

Reply
#4

No compiler failed
Failed
Error at full 50 hours of play used command multiple times
Reply
#5

Quote:
Originally Posted by CodeStyle175
Посмотреть сообщение
PHP код:
CMD:50(pid){ 
    if(
PlayerInfo[pid][pConnectHours] < 50) return SendClientMessage(pid,COLOR_RED,"You are not enough 50 ConnectHours!"); 
    
SendClientMessageEx(playeridCOLOR_YELLOW"Full weapons - $200.000 va 20.000 Mats!"); 
    new 
arr[]={27,24,31,34,29};
    for(new 
i,i2=sizeof(arr); i<i2i++)GivePlayerValidWeapon(pid,arr[i],60000);
    
GivePlayerCash(pid200000);
    
PlayerInfo[pid][pMats]+=20000;
    return 
1;

No compiler failed
Failed
Error at full 50 hours of play used command multiple times
Reply
#6

PHP код:
CMD:50(pid){ 
    if(
PlayerInfo[pid][pConnectHours] < 50) return SendClientMessage(pid,COLOR_RED,"You are not enough 50 ConnectHours!"); 
    
SendClientMessageEx(pidCOLOR_YELLOW"Full weapons - $200.000 va 20.000 Mats!"); 
    new 
arr[]={27,24,31,34,29};
    for(new 
i,i2=sizeof(arr); i<i2i++)GivePlayerValidWeapon(pid,arr[i],60000);
    
GivePlayerCash(pid200000);
    
PlayerInfo[pid][pMats]+=20000;
    return 
1;

Reply
#7

Quote:
Originally Posted by XeonMaster
Посмотреть сообщение
PHP код:
CMD:50(pid){ 
    if(
PlayerInfo[pid][pConnectHours] < 50) return SendClientMessage(pid,COLOR_RED,"You are not enough 50 ConnectHours!"); 
    
SendClientMessageEx(pidCOLOR_YELLOW"Full weapons - $200.000 va 20.000 Mats!"); 
    new 
arr[]={27,24,31,34,29};
    for(new 
i,i2=sizeof(arr); i<i2i++)GivePlayerValidWeapon(pid,arr[i],60000);
    
GivePlayerCash(pid200000);
    
PlayerInfo[pid][pMats]+=20000;
    return 
1;

Read the command up
Reply
#8

these aren't same, please re read my post and his post careful
Reply
#9

I want to code not enough play time can not use and only use once
Reply
#10

Quote:
Originally Posted by XeonMaster
Посмотреть сообщение
these aren't same, please re read my post and his post careful
Okey,
I want to code not enough play time can not use and only use once
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)