25.11.2009, 15:36
Hello,i wanted to make an command with u can see your age,but i failed,it wont show it it will be there like age: but wont show the number...
Heres the command:
Heres the command:
Quote:
if(strcmp(cmd,"/age,true)==0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pTest] = 1) { new targetid = Spectate[playerid]; new text2[20]; new text3[20]; new text4[20]; new text5[20]; new otaxt[20]; new sextext[20]; new sendername[MAX_PLAYER_NAME]; new sage = PlayerInfo[playerid][pAge] new agetext = PlayerInfo[targetid][pAge]; format(string, sizeof(string), "** Age: %s", agetext); SendClientMessage(playerid, COLOR_GREY, string); SendClientMessage(playerid, COLOR_WHITE, "|______________________________________________|" ); } else { SendClientMessage(playerid, COLOR_RED, "You havent done the Test yet!"); } return 1; } } |