#1

Ok so basically I want when someone enters my studio an types /rap [Text] for it to show up on everyone ells screen as
[RAP]First_Last says: [What ever they rap]
And in COLOR_BLUE
if you need the Float: X,Y,Z goto mad dogs crib, and /save Rap command. infront of his microphone.
I dont need any AddStaticPickup(1239, 2,.....); I already have one
If someone could help be that would be more than awesomenes.
~~Thanks~~
Reply
#2

pawn Код:
if(strcmp(cmd, "/rap", true) == 0)
{
 new string[128], name[24];
 new rap[128];
 rap = bigstrtok(cmdtext, idx);
 if(!strlen(rap)) return SendClientMessage(playerid, color, "Usage: /rap [rap]");
 GetPlayerName(playerid, name, 24);
 if(PlayerToPoint(3, playerid, .... , .... , ....)) // replace '....' with the x y and z of the pickup
 {
   format(string, sizeof(string), "[Rap]%s: %s", name, rap);
   SendClientMessageToAll(COLOR_BLUE, string);
   return 1;
 }
 else
 {
   SendClientMessage(playerid, color, "Not at a location to use this command");
 }
 return 1;
}
Reply
#3

Quote:
Originally Posted by [RPr
Icy_Cold ]
pawn Код:
if(strcmp(cmd, "/rap", true) == 0)
{
 new string[128], name[24];
 new rap[128];
 rap = bigstrtok(cmdtext, idx);
 if(!strlen(rap)) return SendClientMessage(playerid, color, "Usage: /rap [rap]");
 GetPlayerName(playerid, name, 24);
 if(PlayerToPoint(3, playerid, .... , .... , ....)) // replace '....' with the x y and z of the pickup
 {
   format(string, sizeof(string), "[Rap]%s: %s", name, rap);
   SendClientMessageToAll(COLOR_BLUE, string);
   return 1;
 }
 else
 {
   SendClientMessage(playerid, color, "Not at a location to use this command");
 }
 return 1;
}
'
OMG, Thank you so much!
Reply
#4

C:\Users\Austin\Desktop\SA-MP host\gamemodes\SARP.pwn(11555) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Austin\Desktop\SA-MP host\gamemodes\SARP.pwn(11557) : error 017: undefined symbol "bigstrtok"
C:\Users\Austin\Desktop\SA-MP host\gamemodes\SARP.pwn(11557) : error 033: array must be indexed (variable "rap")
C:\Users\Austin\Desktop\SA-MP host\gamemodes\SARP.pwn(1155 : error 017: undefined symbol "color"
C:\Users\Austin\Desktop\SA-MP host\gamemodes\SARP.pwn(1156 : error 017: undefined symbol "color"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Reply
#5

color wont work because you need to define it or type the color in yourself

string wont work because you already have string someone else in OnPlayerCommandText()

bigstrtok wont work because it strtok

rap wont work because because its an array you need to use it as an array
Reply
#6

I think he means like, a varieble to let a player raps, then when he talks on IC chat it adds [RAP] to his name.
Reply
#7

Quote:
Originally Posted by MenaceX^
I think he means like, a varieble to let a player raps, then when he talks on IC chat it adds [RAP] to his name.
How'd you work that one out Mr Obvious.
Reply
#8

Quote:
Originally Posted by Norn
Quote:
Originally Posted by MenaceX^
I think he means like, a varieble to let a player raps, then when he talks on IC chat it adds [RAP] to his name.
How'd you work that one out Mr Obvious.
lol, Thanks for the help Norn.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)