20.06.2013, 13:41
Hello, I'm kinda new to scripting, I've been doing it for a couple of months now but I only know the basic stuff. lately I've been looking up tutorials on lots of things on the pawno language because I want to learn more. I am finding it hard at times but most of it I understand. If there's anyone out there that's great with scripting, I'd appreciate it if you could teach me a little. I've hired a lot of scripters for my server but some of them weren't trustworthy and I can't seem to trust anyone anymore.. So I've decided to learn it so I can script myself. If anyones willing to help teach me, send me a message or add me on skype! joshmain1996
Also, I'm trying to script just a simple /kick command at the moment and I'm getting an error that I don't understand.
"Symbol isn't defined "giveplayer" ."
Sorry to sound noob, but I need a little help if anyones up for it! Thanks in advanced
Also, I'm trying to script just a simple /kick command at the moment and I'm getting an error that I don't understand.
"Symbol isn't defined "giveplayer" ."
Код:
if(strcmp("/kick", cmdtext, true, 10) == 0) { if(IsPlayerConnected(giveplayerid)) { new string[128]; format(string, sizeof(string), "%s was kicked by %s, reason: %s", GetPlayerName(giveplayerid), GetPlayerName(playerid), reason); SendClientMessageToAll(0xFFFF00AA, string); Kick(giveplayerid); return 1; } }
