View Single Post
MPC
Junior Member
Join Date: Apr 2010
Old 10-16-2011 , 22:48   Re: Funnyrank plugin for SourceMOD!
Reply With Quote #18

Hey guys!

Been trying to edit the config you guys helped me with ages ago.

This is the error I am getting: error 001: expected token: "}", but found "-string-"

Not sure how to fix it, since I lack scripting skills .


Here's the code:

PHP Code:
#include <sourcemod> 

#define VERSION "0.1" 
#define NAME "Fake Rank" 


static const String:ranks[104][151] = { 
    
"a loser"
    
"classified by the CIA."
    
"secretly Vladimir Putin."
    
"Co-Prince of Andorra."
    
"Prime Minister of Italy."
    
"climbin in yo windows- snatchin yo people up"
    
"President of the United States."
    
"terrible at the game- but can suck cock like a pro!"
    
"grand worldwide yiffing champion for the third year in a row"
    
"acrid Meso-American bullshit"
    
"irrelevant, there is only Zuul"
    
"out of the closet"
    
"in the closet"
    
"perfectly cromulent"
    
"not high enough to be allowed out of the gimp suit yet"
    
"an overweight, over-the-hill, nicotine-stained, borderline alcoholic homophobe with a superiority complex and an unhealthy obsession with male bonding."
    
"a cad and a bounder."
    
"sees dead people."
    
"the possessor of an arsehole like a clown\\'s pocket."
    
"too damn high!."
    
"pretty terrible."
    
"excluding fees, tarriffs, and charges."
    
"Michael Jackson."
    
"Arse Licker By Appointment to His Majesty King George III."
    
"like- totally the best player ever."
    
"awesome sauce."
    
"only $999.99!"
    
"Mayor of London"
    
"Chris Hansen, from Dateline NBC, and we\\’re doing a story on men who meet with minors online for sex"
    
"Douke Noulkemn."
    
"irrelevant! You could never understand how i feel *fixes quiff*"
    
"herpsyphogonahlitissalmahalatosisaids - C."
    
"An accomplished pianist *begins scanning the room* Ladies? *creepy smile*.",
    
"a fox, caught by dogs.",
    
"Suspended in Gaffa.",
    
"A slutty woman who is clearly asking for it."
    
"Fifty-One out of Sixty-Eight."
    
"One sexy snowman!"
    
"A Sandwich."
    
"Fart Enthusiast."
    
"Mark Sanford."
    
"Hung like a horse."
    
"Nick Nolte."
    
"Misfortunate Placenta."
    
"Cockzilla."
    
"Butthorn."
    
"the man with the child in his eyes."
    
"The mechanisation of Soviet agriculture."
    
"UFO! dum dum dum dumdumdum! dee daa dee daa deedeedaa! WOOOOOOoooOOOOOOO! WOOOoo oo oo OOOOOOooooOOOOOoooo!"
    
"David\\'s stepladder."
    
"Kiss my snatch!"
    
"Roger Moore gave me gonorrhea."
    
"-CLASSIFIED-"
    
"Zionist reptile menace."
    
"HAN SOLO EAT A PINEAPPLE."
    
"A Snape/Harry fanfiction.",  
    
"Oppressor of the proletariat."
    
"A funky bass solo."
    
"WHAT\\'S GOING ON?!"
    
"Spiderdad."
    
"Robert Smith\\'s hair."
    
"A -Greek Philosopher- *WINK*"
    
"The innocent love between a young boy and an older man."
    
"Mcnuggets."
    
"all over my fayayayayaaaaace!"
    
"a hot potato"
    
"a hot beef"
    
"a small bowl of clam chowder"
    
"THE WHITE STRIPES GAYEST FAN"
    
"Joe Scarboroughs dead intern",  
    
"SNAAAAAAAAAAKE!!!!"
    
"LIQUUUUUUUUUID!!!!"
    
"Lasagna Bandit."
    
"Cheesewheel."
    
"My desk feels all tilted, does your desk feel tilted? I need to know if it\\'s just me."
    
"NARLY!"
    
"RAD!"
    
"The fierce last stand of all i am."
    
"The first martini of the day."
    
"Input detected! Opening time portal! Time coordinates not detected; default destination: 1984!!!!"
    
"Unruly boy."
    
"TUBULAR!",  
    
"Smokey."
    
"The Bandit."
    
"now slightly lower, since Ser Ilyn Payne cut your head off.",
    
"winter is coming...",
    
"about as overrated as Huey Lewis and The News.",
    
"Augy\\'s dude blazer."
    "a dance with dragons."
,
    
"a feast for crows.",
    
"a dream of spring.",
    
"a clash of kings.",
    
"a game of thrones.",
    
"a renly and loras hot explicit fuck scene.",
    
"funded by the Norwegian Government.",
    
"lookin\\’ good today, lookin\’ good in every way.",
    
"a WW2 realism clan member.",
    
"avaliable at www.theroyalrecuits.biz/viagra/notavirus.com.exe",
    
"avaliable at www.theroyalrecruits.com",
    
"a dreaded sunny day so lets go where we\'re wanted and I meet you at the cemetry gates.",
    
"one lucky falcon.",
    
"just another person in the world.",
    
"Tony Danza wont like you using his hottub like that.",
    
"not avalible right now please try again on 11.06.2192."


public 
Plugin:myinfo = { 
    
name NAME
    
author "Mitchell"
    
description "Fakes the ranking system."
    
version VERSION
    
url "http://www.google.com/" 


public 
OnPluginStart() 

    
CreateConVar("fakerank_version"VERSIONNAMEFCVAR_PLUGIN|FCVAR_DONTRECORD|FCVAR_SPONLY|FCVAR_NOTIFY); 
    
RegConsoleCmd("say"Command_Say); 
    
RegConsoleCmd("say_team"Command_Say); 


public 
Action:Command_Say(clientargs){ 

    
decl String:text[192], String:command[64]; 

    new 
startidx 0

    
GetCmdArgString(textsizeof(text)); 

    if (
text[strlen(text)-1] == '"'
    {         
        
text[strlen(text)-1] = '\0'
        
startidx 1;     
    }      

    if (
strcmp(command"say2"false) == 0
    { 
        
startidx += 4
    } 

    if (
strcmp(text[startidx], "/rank"false) == 0
    { 
        
PrintToChatAll("%Ns \x01Rank is \x04%s"clientranks[GetRandomInt(0111)]); 
    } 

    if (
strcmp(text[startidx], "rank"false) == 0
    { 
        
PrintToChatAll("%Ns \x01Rank is \x04%s"clientranks[GetRandomInt(0111)]); 
    } 
    return 
Plugin_Continue

MPC is offline